mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 21:25:09 +00:00
Move feature gate to ControllerDescriptor
This commit is contained in:
@@ -895,9 +895,11 @@ func startStorageVersionGarbageCollectorController(ctx context.Context, controll
|
|||||||
func newSELinuxWarningControllerDescriptor() *ControllerDescriptor {
|
func newSELinuxWarningControllerDescriptor() *ControllerDescriptor {
|
||||||
return &ControllerDescriptor{
|
return &ControllerDescriptor{
|
||||||
name: names.SELinuxWarningController,
|
name: names.SELinuxWarningController,
|
||||||
aliases: []string{"selinux-warning"},
|
|
||||||
initFunc: startSELinuxWarningController,
|
initFunc: startSELinuxWarningController,
|
||||||
isDisabledByDefault: true,
|
isDisabledByDefault: true,
|
||||||
|
requiredFeatureGates: []featuregate.Feature{
|
||||||
|
features.SELinuxChangePolicy,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user