Skip to content

Commit 59f9a7d

Browse files
committed
Fix preemt function comment
1 parent 04e3b64 commit 59f9a7d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ func (pl *DefaultPreemption) PostFilter(ctx context.Context, state *framework.Cy
8989

9090
// preempt finds nodes with pods that can be preempted to make room for "pod" to
9191
// schedule. It chooses one of the nodes and preempts the pods on the node and
92-
// returns 1) the node, 2) the list of preempted pods if such a node is found,
93-
// 3) A list of pods whose nominated node name should be cleared, and 4) any
94-
// possible error.
92+
// returns 1) the node name which is picked up for preemption, 2) any possible error.
9593
// preempt does not update its snapshot. It uses the same snapshot used in the
9694
// scheduling cycle. This is to avoid a scenario where preempt finds feasible
9795
// nodes without preempting any pod. When there are many pending pods in the

0 commit comments

Comments
 (0)