mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 11:48:15 +00:00 
			
		
		
		
	Return pointer for Affinity in api helper
This commit is contained in:
		@@ -1863,6 +1863,9 @@ func ValidateAffinityInPodAnnotations(annotations map[string]string, fldPath *fi
 | 
			
		||||
		allErrs = append(allErrs, field.Invalid(fldPath, api.AffinityAnnotationKey, err.Error()))
 | 
			
		||||
		return allErrs
 | 
			
		||||
	}
 | 
			
		||||
	if affinity == nil {
 | 
			
		||||
		return allErrs
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	affinityFldPath := fldPath.Child(api.AffinityAnnotationKey)
 | 
			
		||||
	if affinity.NodeAffinity != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user