- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for NodeAffinityIn (0.2 sec)
-
pkg/scheduler/eventhandlers_test.go
st.MakePod().Name("p2").Req(cpu16).NodeAffinityIn("hostname", []string{"fake-node"}).Obj(), st.MakePod().Name("p3").Req(cpu8).NodeAffinityIn("hostname", []string{"fake-node"}).Obj(), st.MakePod().Name("p4").HostPort(8080).Node("invalid-node").Obj(), st.MakePod().Name("p5").Req(cpu4).NodeAffinityIn("hostname", []string{"fake-node"}).HostPort(80).Obj(), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 10 14:38:54 UTC 2024 - 21.5K bytes - Viewed (0) -
pkg/scheduler/testing/wrappers.go
func (p *PodWrapper) NodeSelector(m map[string]string) *PodWrapper { p.Spec.NodeSelector = m return p } // NodeAffinityIn creates a HARD node affinity (with the operator In) // and injects into the inner pod. func (p *PodWrapper) NodeAffinityIn(key string, vals []string) *PodWrapper { if p.Spec.Affinity == nil { p.Spec.Affinity = &v1.Affinity{} } if p.Spec.Affinity.NodeAffinity == nil {
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
}, enableNodeInclusionPolicy: true, }, { name: "NodeAffinityPolicy honored with nodeAffinity", pod: st.MakePod().Name("p").Label("foo", ""). NodeAffinityIn("foo", []string{""}). SpreadConstraint(1, "zone", v1.ScheduleAnyway, barSelector, nil, nil, nil, nil). Obj(), nodes: []*v1.Node{
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
}, }, enableNodeInclusionPolicy: true, }, { name: "NodeAffinityPolicy honored with nodeAffinity", pod: st.MakePod().Name("p").Label("foo", ""). NodeAffinityIn("foo", []string{""}). SpreadConstraint(1, "node", v1.DoNotSchedule, barSelector, nil, nil, nil, nil). Obj(), nodes: []*v1.Node{ st.MakeNode().Name("node-a").Label("node", "node-a").Label("foo", "").Obj(),
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/nodeaffinity/node_affinity_test.go
t.Errorf("obtained scores (-want,+got):\n%s", diff) } }) } } func Test_isSchedulableAfterNodeChange(t *testing.T) { podWithNodeAffinity := st.MakePod().NodeAffinityIn("foo", []string{"bar"}) testcases := map[string]struct { args *config.NodeAffinityArgs pod *v1.Pod oldObj, newObj interface{} expectedHint framework.QueueingHint
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 12:00:10 UTC 2023 - 38.7K bytes - Viewed (0)