- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for nodeScoreList (0.15 sec)
-
pkg/scheduler/framework/plugins/helper/normalize_score_test.go
}, } for i, test := range tests { t.Run(fmt.Sprintf("case_%d", i), func(t *testing.T) { scores := framework.NodeScoreList{} for _, score := range test.scores { scores = append(scores, framework.NodeScore{Score: score}) } expectedScores := framework.NodeScoreList{} for _, score := range test.expectedScores { expectedScores = append(expectedScores, framework.NodeScore{Score: score}) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 14 16:15:18 UTC 2022 - 2.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/helper/normalize_score.go
// reverses the scores by subtracting it from maxPriority. // Note: The input scores are always assumed to be non-negative integers. func DefaultNormalizeScore(maxPriority int64, reverse bool, scores framework.NodeScoreList) *framework.Status { var maxCount int64 for i := range scores { if scores[i].Score > maxCount { maxCount = scores[i].Score } } if maxCount == 0 { if reverse { for i := range scores {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 14 16:15:18 UTC 2022 - 1.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go
return score, nil } // NormalizeScore invoked after scoring all nodes. func (pl *TaintToleration) NormalizeScore(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, scores framework.NodeScoreList) *framework.Status { return helper.DefaultNormalizeScore(framework.MaxNodeScore, true, scores) } // ScoreExtensions of the Score plugin. func (pl *TaintToleration) ScoreExtensions() framework.ScoreExtensions {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 9.2K bytes - Viewed (0)