Remove FilteredNodesStatuses argument from PreScore interface
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user