Update pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go

Co-authored-by: Dominik Marciński <gmidon@gmail.com>
This commit is contained in:
Nicholas Parker
2025-05-16 13:12:13 +12:00
committed by GitHub
parent 28602c66fc
commit 7bccb1acb5

View File

@@ -58,7 +58,7 @@ type IsEligiblePodFunc func(nodeInfo *framework.NodeInfo, victim *framework.PodI
// and the second one should be considered for preemption before the first one.
// For performance reasons, the search for nodes eligible for preemption is done by omitting all
// eligible victims from a node then checking whether the preemptor fits on the node without them,
// before adding back victims that still fit with the preemptor.
// before adding back victims (starting from the most important) that still fit with the preemptor.
// The default behavior is to not consider pod affinity between the preemptor and the victims,
// as affinity between pods that are eligible to preempt each other isn't recommended.
type MoreImportantPodFunc func(pod1, pod2 *v1.Pod) bool