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

@@ -121,7 +121,7 @@ func (s *preScoreState) Clone() framework.StateData {
}
// PreScore calculates incoming pod's resource requests and writes them to the cycle state used.
func (f *Fit) PreScore(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodes []*v1.Node) *framework.Status {
func (f *Fit) PreScore(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodes []*framework.NodeInfo) *framework.Status {
state := &preScoreState{
podRequests: f.calculatePodResourceRequestList(pod, f.resources),
}