Skip to content

Commit 9f4726b

Browse files
authored
Merge pull request #2032 from sbueringer/pr-remove-node-labeling
🌱 Remove NodeLabeling feature gate
2 parents e982749 + e9bb0ea commit 9f4726b

File tree

3 files changed

+2
-24
lines changed

3 files changed

+2
-24
lines changed

docs/proposal/node-affinity-and-anti-affinity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ A new controller is added which is responsible for propagating the labels with a
260260
Two new feature flags are introduced to control the availability of these new behaviors:
261261

262262
1. **NodeAntiAffinity** which is set to `false` by default. This controls the creation of cluster modules to dictate anti affinity for VM placement.
263-
2. **NodeLabeling** which is set to `false` by default. This controls the propagation of labels with a special prefix from Machine to Node objects. Starting from v1.7.0 release, this feature flag is deprecated and this functionality will not be provided by CAPV. CAPI v1.4.0 natively supports this feature.
263+
2. **NodeLabeling** which is set to `false` by default. This controls the propagation of labels with a special prefix from Machine to Node objects. Starting from v1.7.0 release, this feature flag is deprecated and this functionality will not be provided by CAPV. CAPI v1.4.0 natively supports this feature. Starting with v1.8.0 the feature gate has been removed.
264264

265265
## Upgrade Strategy
266266

feature/feature.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,6 @@ const (
3232
//
3333
// alpha: v1.4
3434
NodeAntiAffinity featuregate.Feature = "NodeAntiAffinity"
35-
36-
//nolint: gocritic
37-
// NodeLabeling is a feature gate for the functionality to propagate Machine labels
38-
// with the prefix to the Node objects.
39-
// This is a stop-gap measure which will be removed when we have this functionality
40-
// present in CAPI.
41-
// See https://github.com/kubernetes-sigs/cluster-api/pull/6255
42-
// Since this is natively supported in CAPI with the v1.4 release, this feature is being
43-
// deprecated.
44-
//
45-
// alpha: v1.4
46-
// deprecated: v1.7
47-
NodeLabeling featuregate.Feature = "NodeLabeling"
4835
)
4936

5037
func init() {
@@ -56,5 +43,4 @@ func init() {
5643
var defaultCAPVFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{
5744
// Every feature should be initiated here:
5845
NodeAntiAffinity: {Default: false, PreRelease: featuregate.Alpha},
59-
NodeLabeling: {Default: false, PreRelease: featuregate.Deprecated},
6046
}

main.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -300,16 +300,8 @@ func setupVAPIControllers(ctx *context.ControllerManagerContext, mgr ctrlmgr.Man
300300
if err := controllers.AddVsphereClusterIdentityControllerToManager(ctx, mgr); err != nil {
301301
return err
302302
}
303-
if err := controllers.AddVSphereDeploymentZoneControllerToManager(ctx, mgr); err != nil {
304-
return err
305-
}
306303

307-
if feature.Gates.Enabled(feature.NodeLabeling) {
308-
setupLog.Info("Use of this feature flag is deprecated. Please consider unsetting this feature flag."+
309-
"This flag does not enable the node labeling feature anymore. Consider using the cluster-api node labeling functionality instead.",
310-
"flag", feature.NodeLabeling, "value", "true")
311-
}
312-
return nil
304+
return controllers.AddVSphereDeploymentZoneControllerToManager(ctx, mgr)
313305
}
314306

315307
func setupSupervisorControllers(ctx *context.ControllerManagerContext, mgr ctrlmgr.Manager) error {

0 commit comments

Comments
 (0)