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

@@ -214,7 +214,7 @@ func (s *preScoreState) Clone() framework.StateData {
}
// PreScore builds and writes cycle state used by Score and NormalizeScore.
func (pl *NodeAffinity) PreScore(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodes []*v1.Node) *framework.Status {
func (pl *NodeAffinity) PreScore(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodes []*framework.NodeInfo) *framework.Status {
if len(nodes) == 0 {
return nil
}