diff --git a/test/e2e/data/infrastructure-gcp/cluster-template-ipv6/v1beta1/kcp-ipv6.yaml b/test/e2e/data/infrastructure-gcp/cluster-template-ipv6/v1beta1/kcp-ipv6.yaml new file mode 100644 index 000000000..c20def8eb --- /dev/null +++ b/test/e2e/data/infrastructure-gcp/cluster-template-ipv6/v1beta1/kcp-ipv6.yaml @@ -0,0 +1,21 @@ +--- +kind: KubeadmControlPlane +apiVersion: controlplane.cluster.x-k8s.io/v1beta1 +metadata: + name: "${CLUSTER_NAME}-control-plane" +spec: + kubeadmConfigSpec: + clusterConfiguration: + apiServer: + certSANs: [localhost, "::", "::1", host.docker.internal] + initConfiguration: + localAPIEndpoint: + advertiseAddress: '::' + bindPort: 6443 + nodeRegistration: + kubeletExtraArgs: + node-ip: "::" + joinConfiguration: + nodeRegistration: + kubeletExtraArgs: + node-ip: "::" diff --git a/test/e2e/data/infrastructure-gcp/cluster-template-ipv6/v1beta1/kustomization.yaml b/test/e2e/data/infrastructure-gcp/cluster-template-ipv6/v1beta1/kustomization.yaml new file mode 100644 index 000000000..1a233e731 --- /dev/null +++ b/test/e2e/data/infrastructure-gcp/cluster-template-ipv6/v1beta1/kustomization.yaml @@ -0,0 +1,8 @@ +bases: + - ../bases/cluster-with-kcp.yaml + - ../bases/md.yaml + - ../bases/crs.yaml + +patchesStrategicMerge: + - ./md-ipv6.yaml + - ./kcp-ipv6.yaml diff --git a/test/e2e/data/infrastructure-gcp/cluster-template-ipv6/v1beta1/md-ipv6.yaml b/test/e2e/data/infrastructure-gcp/cluster-template-ipv6/v1beta1/md-ipv6.yaml new file mode 100644 index 000000000..715888fdf --- /dev/null +++ b/test/e2e/data/infrastructure-gcp/cluster-template-ipv6/v1beta1/md-ipv6.yaml @@ -0,0 +1,16 @@ +--- +apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 +kind: KubeadmConfigTemplate +metadata: + name: "${CLUSTER_NAME}-md-0" +spec: + template: + spec: + initConfiguration: + nodeRegistration: + kubeletExtraArgs: + node-ip: "::" + joinConfiguration: + nodeRegistration: + kubeletExtraArgs: + node-ip: "::" diff --git a/test/e2e/suite_test.go b/test/e2e/suite_test.go index 24dd2c935..4ade16cb2 100644 --- a/test/e2e/suite_test.go +++ b/test/e2e/suite_test.go @@ -209,6 +209,7 @@ func setupBootstrapCluster(config *clusterctl.E2EConfig, scheme *runtime.Scheme, Name: config.ManagementClusterName, RequiresDockerSock: config.HasDockerProvider(), Images: config.Images, + IPFamily: config.GetVariable(IPFamily), }) Expect(clusterProvider).ToNot(BeNil(), "Failed to create a bootstrap cluster")