mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #36718 from k82cn/filed_err_msg
Automatic merge from submit-queue Replace raw string with const var. Replace raw string with const string var.
This commit is contained in:
commit
df4e69bb3b
@ -3338,7 +3338,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