mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 13:57:38 +00:00
Update pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go
Co-authored-by: Dominik Marciński <gmidon@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user