Skip to content

Commit 2589e48

Browse files
committed
Ignore CSIMigrationControlPlane FeatureSet
1 parent e6fe8e2 commit 2589e48

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/controller/kubelet-config/kubelet_config_features.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ func (ctrl *Controller) deleteFeature(obj interface{}) {
199199
//nolint:gocritic
200200
func (ctrl *Controller) generateFeatureMap(features *osev1.FeatureGate) (*map[string]bool, error) {
201201
rv := make(map[string]bool)
202+
if features.Spec.FeatureSet == osev1.CSIMigrationControlPlane {
203+
glog.Infof("Ignoring CSIMigrationControlPlane feature gate for kubelet config")
204+
return &rv, nil
205+
}
202206
set, ok := osev1.FeatureSets[features.Spec.FeatureSet]
203207
if !ok {
204208
return &rv, fmt.Errorf("enabled FeatureSet %v does not have a corresponding config", features.Spec.FeatureSet)

0 commit comments

Comments
 (0)