Skip to content

Commit

Permalink
test: enable ipv6 test for reaching nodeport from outside
Browse files Browse the repository at this point in the history
Those test cases were temporarily deleted by #24807 to pass CI, and this
commit adds them back.

Signed-off-by: Zhichuan Liang <gray.liang@isovalent.com>
  • Loading branch information
jschwinger233 authored and pchaigno committed Apr 28, 2023
1 parent 9dd6cfc commit c35ac1c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/k8s/service_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,16 @@ func testNodePort(kubectl *helpers.Kubectl, ni *helpers.NodesInfo, bpfNodePort,
getHTTPLink(ni.K8s2IP, data.Spec.Ports[0].NodePort),
getTFTPLink(ni.K8s2IP, data.Spec.Ports[1].NodePort),
}

if helpers.DualStackSupported() {
testURLsFromOutside = append(testURLsFromOutside,
getHTTPLink(ni.PrimaryK8s1IPv6, v6Data.Spec.Ports[0].NodePort),
getTFTPLink(ni.PrimaryK8s1IPv6, v6Data.Spec.Ports[1].NodePort),

getHTTPLink(ni.PrimaryK8s2IPv6, v6Data.Spec.Ports[0].NodePort),
getTFTPLink(ni.PrimaryK8s2IPv6, v6Data.Spec.Ports[1].NodePort),
)
}
}

count := 10
Expand Down

0 comments on commit c35ac1c

Please sign in to comment.