-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #86 +/- ##
=====================================
Coverage 7.44% 7.44%
=====================================
Files 5 5
Lines 1303 1303
=====================================
Hits 97 97
Misses 1202 1202
Partials 4 4
Flags with carried forward coverage won't be shown. Click here to find out more. |
//if net.ParseIP(v).To4() == nil && !IPV6 { | ||
if net.ParseIP(v).To4() == nil { | ||
continue | ||
} else if net.ParseIP(v).To4() != nil && !IPV4 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ipv4/ipv6 变量在哪里赋的值?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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池
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 链接留下
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 链接留下
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 链接留下
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 变量,最终 应该是能够在 makefile 中 体现和决定
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已添加
149d84e
to
898ea66
Compare
Host should be access to nodePort address, including ipv4 and ipv6 case 失败了,本地再看看?@Roronoa-Z3r0 |
No description provided.