Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NodeAffinityNotIn (0.19 sec)

  1. pkg/scheduler/eventhandlers_test.go

    				st.MakePod().Name("p2").Req(cpu16).Obj(),
    				st.MakePod().Name("p3").Req(cpu4).Req(cpu8).Obj(),
    				st.MakePod().Name("p4").NodeAffinityIn("hostname", []string{"fake-node"}).Obj(),
    				st.MakePod().Name("p5").NodeAffinityNotIn("hostname", []string{"fake-node"}).Obj(),
    				st.MakePod().Name("p6").Obj(),
    				st.MakePod().Name("p7").Node("invalid-node").Obj(),
    				st.MakePod().Name("p8").HostPort(8080).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)
  2. pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go

    					{key: "node", value: "node-y"}: 2,
    				},
    			},
    		},
    		{
    			name: "two spreadConstraints, and with podAffinity",
    			pod: st.MakePod().Name("p").Label("foo", "").
    				NodeAffinityNotIn("node", []string{"node-x"}). // exclude node-x
    				SpreadConstraint(1, "zone", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil).
    				SpreadConstraint(1, "node", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil).
    				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)
  3. pkg/scheduler/testing/wrappers.go

    	p.Spec.Affinity.NodeAffinity.RequiredDuringSchedulingIgnoredDuringExecution = nodeSelector
    	return p
    }
    
    // NodeAffinityNotIn creates a HARD node affinity (with the operator NotIn)
    // and injects into the inner pod.
    func (p *PodWrapper) NodeAffinityNotIn(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)
Back to top