diff --git a/cmd/kubeadm/app/phases/controlplane/manifests_test.go b/cmd/kubeadm/app/phases/controlplane/manifests_test.go index 337ba52149e..c6e879fc382 100644 --- a/cmd/kubeadm/app/phases/controlplane/manifests_test.go +++ b/cmd/kubeadm/app/phases/controlplane/manifests_test.go @@ -598,6 +598,7 @@ func TestGetControllerManagerCommand(t *testing.T) { KubernetesVersion: cpVersion, CertificatesDir: testCertsDir, ClusterName: "some-other-cluster-name", + FeatureGates: map[string]bool{features.IPv6DualStack: false}, }, expected: []string{ "kube-controller-manager", @@ -615,6 +616,7 @@ func TestGetControllerManagerCommand(t *testing.T) { "--authorization-kubeconfig=" + kubeadmconstants.KubernetesDir + "/controller-manager.conf", "--client-ca-file=" + testCertsDir + "/ca.crt", "--requestheader-client-ca-file=" + testCertsDir + "/front-proxy-ca.crt", + "--feature-gates=IPv6DualStack=false", "--cluster-name=some-other-cluster-name", }, }, @@ -679,6 +681,7 @@ func TestGetControllerManagerCommand(t *testing.T) { }, CertificatesDir: testCertsDir, KubernetesVersion: cpVersion, + FeatureGates: map[string]bool{features.IPv6DualStack: false}, }, expected: []string{ "kube-controller-manager", @@ -696,6 +699,7 @@ func TestGetControllerManagerCommand(t *testing.T) { "--authorization-kubeconfig=" + kubeadmconstants.KubernetesDir + "/controller-manager.conf", "--client-ca-file=" + testCertsDir + "/ca.crt", "--requestheader-client-ca-file=" + testCertsDir + "/front-proxy-ca.crt", + "--feature-gates=IPv6DualStack=false", "--allocate-node-cidrs=true", "--cluster-cidr=10.0.1.15/16", "--service-cluster-ip-range=172.20.0.0/24", @@ -846,7 +850,6 @@ func TestGetControllerManagerCommand(t *testing.T) { }, CertificatesDir: testCertsDir, KubernetesVersion: cpVersion, - FeatureGates: map[string]bool{features.IPv6DualStack: true}, }, expected: []string{ "kube-controller-manager", @@ -864,7 +867,6 @@ func TestGetControllerManagerCommand(t *testing.T) { "--authorization-kubeconfig=" + kubeadmconstants.KubernetesDir + "/controller-manager.conf", "--client-ca-file=" + testCertsDir + "/ca.crt", "--requestheader-client-ca-file=" + testCertsDir + "/front-proxy-ca.crt", - "--feature-gates=IPv6DualStack=true", "--allocate-node-cidrs=true", "--cluster-cidr=10.0.1.15/16,2001:db8::/64", "--node-cidr-mask-size-ipv4=20",