Move feature gate to ControllerDescriptor

This commit is contained in:
Jan Safranek
2024-11-06 11:20:14 +01:00
parent 8875f4daf0
commit 4b99a342f4

View File

@@ -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,
},
}
}