Turn on declarative enforcement for podgroup

This commit is contained in:
Joe Betz 2026-04-20 16:33:55 -04:00
parent f40cb27e03
commit 0ac6c9ecce
No known key found for this signature in database
GPG key ID: 83FEBBE24213FEF6

View file

@ -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 {