-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kuma-cni): ipv6 iptables with provided gateway and CNI V2 (#6374)
fix(kuma-cni): IPV6 iptables with provided gateway and CNI V2 Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com> (cherry picked from commit 08a5f9b) # Conflicts: # test/e2e_env/multizone/multizone_suite_test.go
- Loading branch information
1 parent
8731b94
commit acee4c4
Showing
3 changed files
with
88 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
test/e2e_env/multizone/connectivity/cni_v2_ipv6_gateway.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package connectivity | ||
|
||
import ( | ||
. "github.com/onsi/ginkgo/v2" | ||
. "github.com/onsi/gomega" | ||
|
||
"github.com/kumahq/kuma/pkg/plugins/runtime/k8s/metadata" | ||
. "github.com/kumahq/kuma/test/framework" | ||
"github.com/kumahq/kuma/test/framework/client" | ||
"github.com/kumahq/kuma/test/framework/deployments/democlient" | ||
"github.com/kumahq/kuma/test/framework/deployments/testserver" | ||
"github.com/kumahq/kuma/test/framework/envs/multizone" | ||
) | ||
|
||
func GatewayIPV6CNIV2() { | ||
namespace := "gw-ipv6-cniv2" | ||
meshName := "gw-ipv6-cniv2" | ||
|
||
BeforeAll(func() { | ||
Expect(multizone.Global.Install(MTLSMeshUniversal(meshName))).To(Succeed()) | ||
Expect(WaitForMesh(meshName, multizone.Zones())).To(Succeed()) | ||
|
||
err := NewClusterSetup(). | ||
Install(NamespaceWithSidecarInjection(namespace)). | ||
Install(democlient.Install( | ||
democlient.WithNamespace(namespace), | ||
democlient.WithMesh(meshName), | ||
democlient.WithPodAnnotations(map[string]string{ | ||
metadata.KumaGatewayAnnotation: "enabled", | ||
}), | ||
)). | ||
Install(testserver.Install( | ||
testserver.WithNamespace(namespace), | ||
testserver.WithMesh(meshName), | ||
testserver.WithEchoArgs("echo", "--instance", "kube-test-server"), | ||
)). | ||
Setup(multizone.KubeZone2) | ||
Expect(err).ToNot(HaveOccurred()) | ||
}) | ||
|
||
E2EAfterAll(func() { | ||
Expect(multizone.KubeZone2.TriggerDeleteNamespace(namespace)).To(Succeed()) | ||
Expect(multizone.Global.DeleteMesh(meshName)).To(Succeed()) | ||
}) | ||
|
||
It("client should communicate with server", func() { | ||
Eventually(func(g Gomega) { | ||
response, err := client.CollectEchoResponse(multizone.KubeZone2, "demo-client", "http://test-server_gw-ipv6-cniv2_svc_80.mesh", | ||
client.FromKubernetesPod(meshName, "demo-client"), | ||
) | ||
g.Expect(err).ToNot(HaveOccurred()) | ||
g.Expect(response.Instance).To(Equal("kube-test-server")) | ||
}, "30s", "1s").Should(Succeed()) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters