mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Replace raw string with const var.
This commit is contained in:
parent
f8b708385e
commit
1586c2f463
@ -3267,7 +3267,7 @@ func ValidateResourceQuotaUpdate(newResourceQuota, oldResourceQuota *api.Resourc
|
||||
oldScopes.Insert(string(scope))
|
||||
}
|
||||
if !oldScopes.Equal(newScopes) {
|
||||
allErrs = append(allErrs, field.Invalid(fldPath, newResourceQuota.Spec.Scopes, "field is immutable"))
|
||||
allErrs = append(allErrs, field.Invalid(fldPath, newResourceQuota.Spec.Scopes, fieldImmutableErrorMsg))
|
||||
}
|
||||
|
||||
newResourceQuota.Status = oldResourceQuota.Status
|
||||
|
Loading…
Reference in New Issue
Block a user