mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +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))
|
oldScopes.Insert(string(scope))
|
||||||
}
|
}
|
||||||
if !oldScopes.Equal(newScopes) {
|
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
|
newResourceQuota.Status = oldResourceQuota.Status
|
||||||
|
Loading…
Reference in New Issue
Block a user