mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	remove redundant validation check for pod resize
This commit is contained in:
		@@ -5493,7 +5493,6 @@ func ValidatePodResize(newPod, oldPod *core.Pod, opts PodValidationOptions) fiel
 | 
				
			|||||||
	fldPath := field.NewPath("metadata")
 | 
						fldPath := field.NewPath("metadata")
 | 
				
			||||||
	allErrs := ValidateImmutableField(&newPod.ObjectMeta, &oldPod.ObjectMeta, fldPath)
 | 
						allErrs := ValidateImmutableField(&newPod.ObjectMeta, &oldPod.ObjectMeta, fldPath)
 | 
				
			||||||
	allErrs = append(allErrs, validatePodMetadataAndSpec(newPod, opts)...)
 | 
						allErrs = append(allErrs, validatePodMetadataAndSpec(newPod, opts)...)
 | 
				
			||||||
	allErrs = append(allErrs, ValidatePodSpecificAnnotationUpdates(newPod, oldPod, fldPath.Child("annotations"), opts)...)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// static pods cannot be resized.
 | 
						// static pods cannot be resized.
 | 
				
			||||||
	if _, ok := oldPod.Annotations[core.MirrorPodAnnotationKey]; ok {
 | 
						if _, ok := oldPod.Annotations[core.MirrorPodAnnotationKey]; ok {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user