Merge pull request #83386 from draveness/feature/get-rid-of-max-priority

feat(scheduler): remove MaxPriority in the scheduler api
This commit is contained in:
Kubernetes Prow Robot
2019-10-02 06:19:09 -07:00
committed by GitHub
32 changed files with 166 additions and 214 deletions

View File

@@ -157,7 +157,7 @@ func (sp *ScorePlugin) Score(pc *framework.PluginContext, p *v1.Pod, nodeName st
if sp.numScoreCalled == 1 {
// The first node is scored the highest, the rest is scored lower.
sp.highScoreNode = nodeName
score = framework.MaxNodeScore
score = int(framework.MaxNodeScore)
}
return score, nil
}