- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for nodeScoreList (0.53 sec)
-
pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go
Tolerations: tolerations, }, } } func TestTaintTolerationScore(t *testing.T) { tests := []struct { name string pod *v1.Pod nodes []*v1.Node expectedList framework.NodeScoreList }{ // basic test case { name: "node with taints tolerated by the pod, gets a higher score than those node with intolerable taints", pod: podWithTolerations("pod1", []v1.Toleration{{ Key: "foo",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 17.5K 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) -
pkg/scheduler/framework/plugins/noderesources/fit_test.go
func TestFitScore(t *testing.T) { tests := []struct { name string requestedPod *v1.Pod nodes []*v1.Node existingPods []*v1.Pod expectedPriorities framework.NodeScoreList nodeResourcesFitArgs config.NodeResourcesFitArgs runPreScore bool }{ { name: "test case for ScoringStrategy RequestedToCapacityRatio case1", requestedPod: st.MakePod().
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 57.4K bytes - Viewed (0)