Commit 1586c2f4 authored by Klaus Ma's avatar Klaus Ma

Replace raw string with const var.

parent f8b70838
...@@ -3267,7 +3267,7 @@ func ValidateResourceQuotaUpdate(newResourceQuota, oldResourceQuota *api.Resourc ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment