Skip to content

Commit dabd00c

Browse files
committed
Fix scheduler prefilter comment
1 parent 4e8b56e commit dabd00c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/scheduler/core/generic_scheduler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ func (g *genericScheduler) Schedule(ctx context.Context, prof *profile.Profile,
161161
return result, ErrNoNodesAvailable
162162
}
163163

164-
// Run "prefilter" plugins.
165164
startPredicateEvalTime := time.Now()
166165
filteredNodes, filteredNodesStatuses, err := g.findNodesThatFitPod(ctx, prof, state, pod)
167166
if err != nil {
@@ -395,6 +394,7 @@ func (g *genericScheduler) numFeasibleNodesToFind(numAllNodes int32) (numNodes i
395394
// Filters the nodes to find the ones that fit the pod based on the framework
396395
// filter plugins and filter extenders.
397396
func (g *genericScheduler) findNodesThatFitPod(ctx context.Context, prof *profile.Profile, state *framework.CycleState, pod *v1.Pod) ([]*v1.Node, framework.NodeToStatusMap, error) {
397+
// Run "prefilter" plugins.
398398
s := prof.RunPreFilterPlugins(ctx, state, pod)
399399
if !s.IsSuccess() {
400400
return nil, nil, s.AsError()

0 commit comments

Comments
 (0)