From 4b99a342f49114bf356be415adbaa4a7026e762d Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Wed, 6 Nov 2024 11:20:14 +0100 Subject: [PATCH] Move feature gate to ControllerDescriptor --- cmd/kube-controller-manager/app/core.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/kube-controller-manager/app/core.go b/cmd/kube-controller-manager/app/core.go index 353557e071e..e2837d4398a 100644 --- a/cmd/kube-controller-manager/app/core.go +++ b/cmd/kube-controller-manager/app/core.go @@ -895,9 +895,11 @@ func startStorageVersionGarbageCollectorController(ctx context.Context, controll func newSELinuxWarningControllerDescriptor() *ControllerDescriptor { return &ControllerDescriptor{ name: names.SELinuxWarningController, - aliases: []string{"selinux-warning"}, initFunc: startSELinuxWarningController, isDisabledByDefault: true, + requiredFeatureGates: []featuregate.Feature{ + features.SELinuxChangePolicy, + }, } }