Deprecate repair-malformed-updates flag, move object meta mutation into BeforeCreate

This commit is contained in:
Jordan Liggitt
2018-03-21 01:20:34 -04:00
parent a8a963c983
commit 7f840f4441
8 changed files with 37 additions and 64 deletions

View File

@@ -55,10 +55,6 @@ import (
"k8s.io/kubernetes/pkg/security/apparmor"
)
// TODO: delete this global variable when we enable the validation of common
// fields by default.
var RepairMalformedUpdates bool = apimachineryvalidation.RepairMalformedUpdates
const isNegativeErrorMsg string = apimachineryvalidation.IsNegativeErrorMsg
const isInvalidQuotaResource string = `must be a standard resource for quota`
const fieldImmutableErrorMsg string = apimachineryvalidation.FieldImmutableErrorMsg