mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #72948 from bsalamat/remove_todo
Cleanup a TODO in preemption logic to reflect the current state
This commit is contained in:
		@@ -1036,10 +1036,11 @@ func selectVictimsOnNode(
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	potentialVictims.Sort()
 | 
						potentialVictims.Sort()
 | 
				
			||||||
	// If the new pod does not fit after removing all the lower priority pods,
 | 
						// If the new pod does not fit after removing all the lower priority pods,
 | 
				
			||||||
	// we are almost done and this node is not suitable for preemption. The only condition
 | 
						// we are almost done and this node is not suitable for preemption. The only
 | 
				
			||||||
	// that we should check is if the "pod" is failing to schedule due to pod affinity
 | 
						// condition that we could check is if the "pod" is failing to schedule due to
 | 
				
			||||||
	// failure.
 | 
						// inter-pod affinity to one or more victims, but we have decided not to
 | 
				
			||||||
	// TODO(bsalamat): Consider checking affinity to lower priority pods if feasible with reasonable performance.
 | 
						// support this case for performance reasons. Having affinity to lower
 | 
				
			||||||
 | 
						// priority pods is not a recommended configuration anyway.
 | 
				
			||||||
	if fits, _, err := podFitsOnNode(pod, meta, nodeInfoCopy, fitPredicates, queue, false); !fits {
 | 
						if fits, _, err := podFitsOnNode(pod, meta, nodeInfoCopy, fitPredicates, queue, false); !fits {
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			klog.Warningf("Encountered error while selecting victims on node %v: %v", nodeInfo.Node().Name, err)
 | 
								klog.Warningf("Encountered error while selecting victims on node %v: %v", nodeInfo.Node().Name, err)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user