mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-29 21:29:24 +00:00
Remove FilteredNodesStatuses argument from PreScore interface
This commit is contained in:
@@ -203,7 +203,7 @@ func (g *genericScheduler) Schedule(ctx context.Context, state *framework.CycleS
|
||||
}
|
||||
|
||||
// Run "prescore" plugins.
|
||||
prescoreStatus := g.framework.RunPreScorePlugins(ctx, state, pod, filteredNodes, filteredNodesStatuses)
|
||||
prescoreStatus := g.framework.RunPreScorePlugins(ctx, state, pod, filteredNodes)
|
||||
if !prescoreStatus.IsSuccess() {
|
||||
return result, prescoreStatus.AsError()
|
||||
}
|
||||
|
||||
@@ -1144,11 +1144,11 @@ func TestZeroRequest(t *testing.T) {
|
||||
|
||||
ctx := context.Background()
|
||||
state := framework.NewCycleState()
|
||||
_, filteredNodesStatuses, err := scheduler.findNodesThatFitPod(ctx, state, test.pod)
|
||||
_, _, err = scheduler.findNodesThatFitPod(ctx, state, test.pod)
|
||||
if err != nil {
|
||||
t.Fatalf("error filtering nodes: %+v", err)
|
||||
}
|
||||
scheduler.framework.RunPreScorePlugins(ctx, state, test.pod, test.nodes, filteredNodesStatuses)
|
||||
scheduler.framework.RunPreScorePlugins(ctx, state, test.pod, test.nodes)
|
||||
list, err := scheduler.prioritizeNodes(
|
||||
ctx,
|
||||
state,
|
||||
|
||||
Reference in New Issue
Block a user