- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MakeLabelSelector (0.29 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/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)