Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PodAffinityIn (0.12 sec)

  1. pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go

    			pod:          st.MakePod().Name("p").PodAffinityIn("service", "region", []string{"securityscan", "value2"}, st.PodAffinityWithRequiredReq).Obj(),
    			newPod:       st.MakePod().Node("fake-node").Label("service", "securityscan").Obj(),
    			expectedHint: framework.Queue,
    		},
    		{
    			name:         "add an un-scheduled pod",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 03:08:44 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. pkg/scheduler/testing/wrappers.go

    	labelSelector := MakeLabelSelector().NotExist(labelKey).Obj()
    	p.PodAntiAffinity(topologyKey, labelSelector, kind)
    	return p
    }
    
    // PodAffinityIn creates a PodAffinity with the operator "In"
    // and injects into the inner pod.
    func (p *PodWrapper) PodAffinityIn(labelKey, topologyKey string, vals []string, kind PodAffinityKind) *PodWrapper {
    	labelSelector := MakeLabelSelector().In(labelKey, vals).Obj()
    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