- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for WithNodeName (0.33 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) -
staging/src/k8s.io/client-go/applyconfigurations/core/v1/podspec.go
b.AutomountServiceAccountToken = &value return b } // WithNodeName sets the NodeName field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the NodeName field is set to the value of the last call. func (b *PodSpecApplyConfiguration) WithNodeName(value string) *PodSpecApplyConfiguration { b.NodeName = &value
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 10 19:22:42 UTC 2022 - 23.9K bytes - Viewed (0)