mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
Turn on declarative enforcement for podgroup
This commit is contained in:
parent
f40cb27e03
commit
0ac6c9ecce
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ func (*podGroupStrategy) DeclarativeValidationConfig(ctx context.Context, obj, o
|
|||
if utilfeature.DefaultFeatureGate.Enabled(features.WorkloadAwarePreemption) {
|
||||
opts = append(opts, string(features.WorkloadAwarePreemption))
|
||||
}
|
||||
return rest.DeclarativeValidationConfig{Options: opts}
|
||||
return rest.DeclarativeValidationConfig{Options: opts, DeclarativeEnforcement: true}
|
||||
}
|
||||
|
||||
func (*podGroupStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string {
|
||||
|
|
|
|||
Loading…
Reference in a new issue