Merge pull request #98201 from pacoxu/limit-range/fix

fix duplicate validation error for quota editing
This commit is contained in:
Kubernetes Prow Robot 2021-02-15 12:53:05 -08:00 committed by GitHub
commit 3d8dd2517f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,8 +72,7 @@ func (resourcequotaStrategy) AllowCreateOnUpdate() bool {
// ValidateUpdate is the default update validation for an end user.
func (resourcequotaStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
errorList := validation.ValidateResourceQuota(obj.(*api.ResourceQuota))
return append(errorList, validation.ValidateResourceQuotaUpdate(obj.(*api.ResourceQuota), old.(*api.ResourceQuota))...)
return validation.ValidateResourceQuotaUpdate(obj.(*api.ResourceQuota), old.(*api.ResourceQuota))
}
func (resourcequotaStrategy) AllowUnconditionalUpdate() bool {