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

@@ -247,7 +247,7 @@ func (*PreScorePlugin) Name() string {
}
// PreScore is a test function.
func (pfp *PreScorePlugin) PreScore(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, _ []*v1.Node, _ framework.NodeToStatusMap) *framework.Status {
func (pfp *PreScorePlugin) PreScore(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, _ []*v1.Node) *framework.Status {
pfp.numPreScoreCalled++
if pfp.failPreScore {
return framework.NewStatus(framework.Error, fmt.Sprintf("injecting failure for pod %v", pod.Name))