Remove FilteredNodesStatuses argument from PreScore interface

This commit is contained in:
skilxn-go
2020-02-15 13:48:45 +08:00
parent 208df3828d
commit 8fd0d8028f
17 changed files with 31 additions and 37 deletions

View File

@@ -65,7 +65,6 @@ func (rl *ResourceLimits) PreScore(
cycleState *framework.CycleState,
pod *v1.Pod,
nodes []*v1.Node,
_ framework.NodeToStatusMap,
) *framework.Status {
if len(nodes) == 0 {
// No nodes to score.

View File

@@ -152,7 +152,7 @@ func TestResourceLimits(t *testing.T) {
for i := range test.nodes {
state := framework.NewCycleState()
if !test.skipPreScore {
status := p.PreScore(context.Background(), state, test.pod, test.nodes, nil)
status := p.PreScore(context.Background(), state, test.pod, test.nodes)
if !status.IsSuccess() {
t.Errorf("unexpected error: %v", status)
}