- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for MakeLabelSelector (1.53 sec)
-
pkg/scheduler/testing/wrappers.go
return &s.NodeSelector } // LabelSelectorWrapper wraps a LabelSelector inside. type LabelSelectorWrapper struct{ metav1.LabelSelector } // MakeLabelSelector creates a LabelSelector wrapper. func MakeLabelSelector() *LabelSelectorWrapper { return &LabelSelectorWrapper{metav1.LabelSelector{}} } // Label applies a {k,v} pair to the inner LabelSelector.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 42.1K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go
pod: st.MakePod().Name("p").Label("foo", "").Label("bar", ""). SpreadConstraint(1, "zone", v1.ScheduleAnyway, st.MakeLabelSelector().Obj(), nil, nil, nil, []string{"foo"}). SpreadConstraint(1, v1.LabelHostname, v1.ScheduleAnyway, st.MakeLabelSelector().Obj(), nil, nil, nil, []string{"bar"}). Obj(), existingPods: []*v1.Pod{ st.MakePod().Name("p-a1").Node("node-a").Label("foo", "").Obj(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 60K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go
ignorePolicy = v1.NodeInclusionPolicyIgnore honorPolicy = v1.NodeInclusionPolicyHonor fooSelector = st.MakeLabelSelector().Exists("foo").Obj() barSelector = st.MakeLabelSelector().Exists("bar").Obj() taints = []v1.Taint{{Key: v1.TaintNodeUnschedulable, Value: "", Effect: v1.TaintEffectNoSchedule}} ) func (p *criticalPaths) sort() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 10:42:29 UTC 2024 - 143.1K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go
testPods: []*v1.Pod{ st.MakePod().Name("p").UID("p").Label("foo", "").Priority(highPriority). SpreadConstraint(1, "zone", v1.DoNotSchedule, st.MakeLabelSelector().Exists("foo").Obj(), nil, nil, nil, nil). SpreadConstraint(1, "hostname", v1.DoNotSchedule, st.MakeLabelSelector().Exists("foo").Obj(), nil, nil, nil, nil). Obj(), }, initPods: []*v1.Pod{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 82.8K bytes - Viewed (0)