From 7bccb1acb5eb045ff5f4fcbb466924492970765f Mon Sep 17 00:00:00 2001 From: Nicholas Parker Date: Fri, 16 May 2025 13:12:13 +1200 Subject: [PATCH] Update pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Dominik MarciƄski --- .../framework/plugins/defaultpreemption/default_preemption.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go b/pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go index 2b121ad5fab..9484fe952c7 100644 --- a/pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go +++ b/pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go @@ -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