From 1586c2f463b209cea8638b187f7e2da7987c01ae Mon Sep 17 00:00:00 2001 From: Klaus Ma Date: Thu, 5 Jan 2017 19:11:27 +0800 Subject: [PATCH] Replace raw string with const var. --- pkg/api/validation/validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/validation/validation.go b/pkg/api/validation/validation.go index 2c6e2749d37..bd583231bb0 100644 --- a/pkg/api/validation/validation.go +++ b/pkg/api/validation/validation.go @@ -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