mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +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:
		@@ -3338,7 +3338,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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user