- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for PodAffinityExists (0.15 sec)
-
pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go
expectedHint: framework.QueueSkip, }, { name: "update a pod from match to non-match pod's affinity - multiple terms case", pod: st.MakePod().Name("p").PodAffinityExists("aaa", "hostname", st.PodAffinityWithRequiredReq). PodAffinityExists("bbb", "hostname", st.PodAffinityWithRequiredReq).Obj(), newPod: st.MakePod().Node("fake-node").Label("service", "securityscan").Obj(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 03:08:44 UTC 2024 - 9.7K bytes - Viewed (0) -
pkg/scheduler/testing/wrappers.go
v1.WeightedPodAffinityTerm{Weight: 1, PodAffinityTerm: term}, ) } return p } // PodAffinityExists creates a PodAffinity with the operator "Exists" // and injects into the inner pod. func (p *PodWrapper) PodAffinityExists(labelKey, topologyKey string, kind PodAffinityKind) *PodWrapper { labelSelector := MakeLabelSelector().Exists(labelKey).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) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
ctx, cancel := context.WithCancel(ctx) defer cancel() affinityPod := st.MakePod().Name("afp").Namespace("ns1").UID("afp").Annotation("annot2", "val2").Priority(mediumPriority).NominatedNodeName("node1").PodAffinityExists("service", "region", st.PodAffinityWithRequiredReq).Obj() labelPod := st.MakePod().Name("lbp").Namespace(affinityPod.Namespace).Label("service", "securityscan").Node("node1").Obj()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0)