mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 02:08:13 +00:00 
			
		
		
		
	Merge pull request #44814 from weizhanxu/controllerRef_no_Need_Check_nil_again
Automatic merge from submit-queue (batch tested with PRs 41530, 44814, 43620, 41985) no need check is nil, because has checked before **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note ```
This commit is contained in:
		| @@ -51,10 +51,8 @@ func CalculateNodePreferAvoidPodsPriorityMap(pod *v1.Pod, meta interface{}, node | ||||
| 	} | ||||
| 	for i := range avoids.PreferAvoidPods { | ||||
| 		avoid := &avoids.PreferAvoidPods[i] | ||||
| 		if controllerRef != nil { | ||||
| 			if avoid.PodSignature.PodController.Kind == controllerRef.Kind && avoid.PodSignature.PodController.UID == controllerRef.UID { | ||||
| 				return schedulerapi.HostPriority{Host: node.Name, Score: 0}, nil | ||||
| 			} | ||||
| 		if avoid.PodSignature.PodController.Kind == controllerRef.Kind && avoid.PodSignature.PodController.UID == controllerRef.UID { | ||||
| 			return schedulerapi.HostPriority{Host: node.Name, Score: 0}, nil | ||||
| 		} | ||||
| 	} | ||||
| 	return schedulerapi.HostPriority{Host: node.Name, Score: 10}, nil | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Submit Queue
					Kubernetes Submit Queue