- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for nodeScoreList (0.34 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/interface.go
"k8s.io/client-go/tools/events" "k8s.io/klog/v2" "k8s.io/kubernetes/pkg/scheduler/apis/config" "k8s.io/kubernetes/pkg/scheduler/framework/parallelize" ) // NodeScoreList declares a list of nodes and their scores. type NodeScoreList []NodeScore // NodeScore is a struct with node name and score. type NodeScore struct { Name string Score int64 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 35.4K bytes - Viewed (0) -
pkg/scheduler/schedule_one.go
// It also returns the top {count} Nodes, // and the top of the list will be always the selected host. func selectHost(nodeScoreList []framework.NodePluginScores, count int) (string, []framework.NodePluginScores, error) { if len(nodeScoreList) == 0 { return "", nil, errEmptyPriorityList } var h nodeScoreHeap = nodeScoreList heap.Init(&h) cntOfMaxScore := 1 selectedIndex := 0
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 13:28:08 UTC 2024 - 43.4K bytes - Viewed (0)