diff --git a/pkg/model/components/kubecontrollermanager.go b/pkg/model/components/kubecontrollermanager.go index bb65bab253ee6..1e6832e2ba289 100644 --- a/pkg/model/components/kubecontrollermanager.go +++ b/pkg/model/components/kubecontrollermanager.go @@ -158,6 +158,9 @@ func (b *KubeControllerManagerOptionsBuilder) BuildOptions(o interface{}) error if _, found := kcm.FeatureGates["CSIMigrationAWSComplete"]; !found { kcm.FeatureGates["CSIMigrationAWSComplete"] = "true" } + if _, found := kcm.FeatureGates["CSIMigrationAWS"]; !found { + kcm.FeatureGates["CSIMigrationAWS"] = "true" + } } return nil diff --git a/pkg/model/components/kubelet.go b/pkg/model/components/kubelet.go index cbd55fb6fdf52..f5e415f882870 100644 --- a/pkg/model/components/kubelet.go +++ b/pkg/model/components/kubelet.go @@ -209,6 +209,9 @@ func (b *KubeletOptionsBuilder) BuildOptions(o interface{}) error { } if clusterSpec.CloudConfig != nil && clusterSpec.CloudConfig.AWSEBSCSIDriver != nil && fi.BoolValue(clusterSpec.CloudConfig.AWSEBSCSIDriver.Enabled) { + if _, found := clusterSpec.Kubelet.FeatureGates["CSIMigrationAWS"]; !found { + clusterSpec.Kubelet.FeatureGates["CSIMigrationAWS"] = "true" + } if _, found := clusterSpec.Kubelet.FeatureGates["CSIMigrationAWSComplete"]; !found { clusterSpec.Kubelet.FeatureGates["CSIMigrationAWSComplete"] = "true" }