Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add macvlan overlay e2e #86

Merged
merged 1 commit into from
Nov 15, 2022
Merged

add macvlan overlay e2e #86

merged 1 commit into from
Nov 15, 2022

Conversation

ii2day
Copy link
Member

@ii2day ii2day commented Nov 8, 2022

No description provided.

@codecov
Copy link

codecov bot commented Nov 8, 2022

Codecov Report

Merging #86 (1c2cfbd) into main (a3a6704) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##            main     #86   +/-   ##
=====================================
  Coverage   7.44%   7.44%           
=====================================
  Files          5       5           
  Lines       1303    1303           
=====================================
  Hits          97      97           
  Misses      1202    1202           
  Partials       4       4           
Flag Coverage Δ
unittests 7.44% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@cyclinder cyclinder added the kind/feature New feature or request label Nov 8, 2022
//if net.ParseIP(v).To4() == nil && !IPV6 {
if net.ParseIP(v).To4() == nil {
continue
} else if net.ParseIP(v).To4() != nil && !IPV4 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ipv4/ipv6 变量在哪里赋的值?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

根据环境变量在const里赋值的

multusInstance, err := frame.GetMultusInstance(common.MacvlanOverlayVlan100Name, multuNs)
Expect(err).NotTo(HaveOccurred())
Expect(multusInstance).NotTo(BeNil())
annotations[common.MultusAddonAnnotation_Key] = fmt.Sprintf("%s/%s", multuNs, common.MacvlanOverlayVlan100Name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的anotations 应该包括 spiderpool 指定 ip 池的 annotation, 并且选择 vlan100 的IP池

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

It("Pod should be access to clusterIP, including ipv4 and ipv6", Label("curl"), func() {
for _, pod := range podList.Items {
for _, clusterIP := range clusterIPs {
if net.ParseIP(clusterIP).To4() == nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里留个 todo ,说明 calico ipv6 目前通讯问题,把 projectcalico/calico#6877 链接留下

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已添加

It("Host should be access to clusterIP, including ipv4 and ipv6", Label("curl"), func() {
for _, node := range frame.Info.KindNodeList {
for _, clusterIP := range clusterIPs {
if net.ParseIP(clusterIP).To4() == nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里留个 todo ,说明 calico ipv6 目前通讯问题,把 projectcalico/calico#6877 链接留下

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已添加

It("Host should be access to nodePort address, including ipv4 and ipv6", Label("curl"), func() {
for _, node := range frame.Info.KindNodeList {
for _, nodeIP := range nodeIPs {
if net.ParseIP(nodeIP).To4() == nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里留个 todo ,说明 calico ipv6 目前通讯问题,把 projectcalico/calico#6877 链接留下

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已添加

@@ -5,7 +5,7 @@ set -o errexit -o nounset -o pipefail
#INSTALLED=` helm list -n kube-system --kubeconfig ${E2E_KUBECONFIG} | awk '{print $1}'| grep spiderpool `
#[ -n ${INSTALLED} ] && echo "Warning!! spiderpool has been deployed, skip install spiderpool" && exit 0

SPIDERPOOL_VERSION=${SPIDERPOOL_VERSION:-0.2.0}
SPIDERPOOL_VERSION=${SPIDERPOOL_VERSION:-0.3.2}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 变量,最终 应该是能够在 makefile 中 体现和决定

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已添加

@cyclinder
Copy link
Collaborator

Host should be access to nodePort address, including ipv4 and ipv6 case 失败了,本地再看看?@Roronoa-Z3r0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants