Skip to content

Commit

Permalink
Merge pull request #10793 from olemarkus/automated-cherry-pick-of-#10…
Browse files Browse the repository at this point in the history
…791-origin-release-1.20

Automated cherry pick of #10791: CSIMigrationAWSComplete feature gate does not work unless
  • Loading branch information
k8s-ci-robot authored Feb 11, 2021
2 parents 04f20fa + f79cf67 commit ed08c74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/model/components/kubecontrollermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions pkg/model/components/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit ed08c74

Please sign in to comment.