Merge pull request #121954 from AxeZhan/nodeInfo

Sched framework: expose NodeInfo in all functions of PluginsRunner interface
This commit is contained in:
Kubernetes Prow Robot
2023-12-15 18:33:00 +01:00
committed by GitHub
31 changed files with 185 additions and 148 deletions

View File

@@ -31,6 +31,7 @@ import (
"k8s.io/kubernetes/pkg/scheduler/framework/runtime"
"k8s.io/kubernetes/pkg/scheduler/internal/cache"
st "k8s.io/kubernetes/pkg/scheduler/testing"
tf "k8s.io/kubernetes/pkg/scheduler/testing/framework"
)
// TODO: Add test case for RequiredDuringSchedulingRequiredDuringExecution after it's implemented.
@@ -1149,7 +1150,7 @@ func TestNodeAffinityPriority(t *testing.T) {
}
var status *framework.Status
if test.runPreScore {
status = p.(framework.PreScorePlugin).PreScore(ctx, state, test.pod, test.nodes)
status = p.(framework.PreScorePlugin).PreScore(ctx, state, test.pod, tf.BuildNodeInfos(test.nodes))
if !status.IsSuccess() {
t.Errorf("unexpected error: %v", status)
}