-
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 (backport
#6374) (#6376) * 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> * fix(e2e): adjust e2e test Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com> --------- Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com> Co-authored-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
- Loading branch information
1 parent
80f608f
commit cff9f35
Showing
3 changed files
with
66 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
56 changes: 56 additions & 0 deletions
56
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,56 @@ | ||
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/e2e_env/multizone/env" | ||
. "github.com/kumahq/kuma/test/framework" | ||
"github.com/kumahq/kuma/test/framework/client" | ||
"github.com/kumahq/kuma/test/framework/deployments/testserver" | ||
) | ||
|
||
func GatewayIPV6CNIV2() { | ||
namespace := "gw-ipv6-cniv2" | ||
meshName := "gw-ipv6-cniv2" | ||
|
||
BeforeAll(func() { | ||
Expect(env.Global.Install(MTLSMeshUniversal(meshName))).To(Succeed()) | ||
Expect(WaitForMesh(meshName, env.Zones())).To(Succeed()) | ||
|
||
err := NewClusterSetup(). | ||
Install(NamespaceWithSidecarInjection(namespace)). | ||
Install(testserver.Install( | ||
testserver.WithName("demo-client"), | ||
testserver.WithNamespace(namespace), | ||
testserver.WithMesh(meshName), | ||
testserver.WithPodAnnotations(map[string]string{ | ||
metadata.KumaGatewayAnnotation: "enabled", | ||
}), | ||
testserver.WithEchoArgs("echo", "--instance", "demo-client"), | ||
)). | ||
Install(testserver.Install( | ||
testserver.WithNamespace(namespace), | ||
testserver.WithMesh(meshName), | ||
testserver.WithEchoArgs("echo", "--instance", "kube-test-server"), | ||
)). | ||
Setup(env.KubeZone2) | ||
Expect(err).ToNot(HaveOccurred()) | ||
}) | ||
|
||
E2EAfterAll(func() { | ||
Expect(env.KubeZone2.TriggerDeleteNamespace(namespace)).To(Succeed()) | ||
Expect(env.Global.DeleteMesh(meshName)).To(Succeed()) | ||
}) | ||
|
||
It("client should communicate with server", func() { | ||
Eventually(func(g Gomega) { | ||
response, err := client.CollectResponse(env.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