- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for WithNodeName (0.23 sec)
-
pkg/scheduler/framework/plugins/volumebinding/binder_test.go
shouldFail bool } scenarios := map[string]scenarioType{ "no-volumes": { pod: makePod("test-pod"). withNamespace("testns"). withNodeName("node1").Pod, }, "no-pvcs": { pod: makePod("test-pod"). withNamespace("testns"). withNodeName("node1"). withEmptyDirVolume().Pod, }, "pvc-not-found": { cachePVCs: []*v1.PersistentVolumeClaim{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 82.8K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/test_utils.go
ObjectMeta: metav1.ObjectMeta{ Name: name, Namespace: v1.NamespaceDefault, }, }} pb.Pod.Spec.Volumes = make([]v1.Volume, 0) return pb } func (pb podBuilder) withNodeName(name string) podBuilder { pb.Pod.Spec.NodeName = name return pb } func (pb podBuilder) withNamespace(name string) podBuilder { pb.Pod.ObjectMeta.Namespace = name return pb }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 13 07:42:19 UTC 2023 - 4.9K bytes - Viewed (0)