- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 203 for PodSpec (0.15 sec)
-
pkg/apis/core/v1/defaults.go
} } func SetDefaults_PodSpec(obj *v1.PodSpec) { // New fields added here will break upgrade tests: // https://github.com/kubernetes/kubernetes/issues/69445 // In most cases the new defaulted field can added to SetDefaults_Pod instead of here, so // that it only materializes in the Pod object and not all objects with a PodSpec field. if obj.DNSPolicy == "" { obj.DNSPolicy = v1.DNSClusterFirst }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 22:24:15 UTC 2024 - 14.8K bytes - Viewed (0) -
pilot/pkg/controllers/untaint/nodeuntainter_test.go
automount := false return &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: name, Labels: labels, Annotations: annotations, Namespace: namespace, }, Spec: corev1.PodSpec{ ServiceAccountName: saName, NodeName: node, AutomountServiceAccountToken: &automount, // Validation requires this Containers: []corev1.Container{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 00:50:31 UTC 2024 - 6.1K bytes - Viewed (0) -
pkg/kubelet/runonce_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 06:59:54 UTC 2024 - 6.5K bytes - Viewed (0) -
plugin/pkg/admission/podnodeselector/admission_test.go
handler.clusterNodeSelectors = make(map[string]string) handler.clusterNodeSelectors["clusterDefaultNodeSelector"] = test.defaultNodeSelector handler.clusterNodeSelectors[namespace.Name] = test.whitelist pod.Spec = api.PodSpec{NodeSelector: test.podNodeSelector}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 8K bytes - Viewed (0) -
plugin/pkg/admission/namespace/autoprovision/admission_test.go
return mockClient } // newPod returns a new pod for the specified namespace func newPod(namespace string) api.Pod { return api.Pod{ ObjectMeta: metav1.ObjectMeta{Name: "123", Namespace: namespace}, Spec: api.PodSpec{ Volumes: []api.Volume{{Name: "vol"}}, Containers: []api.Container{{Name: "ctr", Image: "image"}}, }, } } // hasCreateNamespaceAction returns true if it has the create namespace action
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 7.5K bytes - Viewed (0) -
pkg/controller/volume/ephemeral/controller_test.go
}, }, } } func makePod(name, namespace string, uid types.UID, volumes ...v1.Volume) *v1.Pod { pvc := &v1.Pod{ ObjectMeta: metav1.ObjectMeta{Name: name, Namespace: namespace, UID: uid}, Spec: v1.PodSpec{ Volumes: volumes, }, } return pvc } func podKey(pod *v1.Pod) string { key, _ := cache.DeletionHandlingMetaNamespaceKeyFunc(testPodWithEphemeral) return key }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 8.5K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_executor.go
// that should be mounted. Used to create NewMounter. Used to generate // InnerVolumeSpecName. VolumeSpec *volume.Spec // outerVolumeSpecName is the podSpec.Volume[x].Name of the volume. If the // volume was referenced through a persistent volume claim, this contains // the podSpec.Volume[x].Name of the persistent volume claim. OuterVolumeSpecName string // Pod to mount the volume to. Used to create NewMounter. Pod *v1.Pod
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 42.6K bytes - Viewed (0) -
pkg/scheduler/testing/wrappers.go
}, } return p } // Container appends a container into PodSpec of the inner pod. func (p *PodWrapper) Container(s string) *PodWrapper { name := fmt.Sprintf("con%d", len(p.Spec.Containers)) p.Spec.Containers = append(p.Spec.Containers, MakeContainer().Name(name).Image(s).Obj()) return p } // Containers sets `containers` to the PodSpec of the inner pod.
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/kubelet/server/stats/volume_stat_calculator_test.go
}, }, } fakePod = &k8sv1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: pName0, Namespace: namespace0, UID: "UID" + pName0, }, Spec: k8sv1.PodSpec{ Volumes: podVolumes, }, } volumeCondition = &csipbv1.VolumeCondition{} ) func TestPVCRef(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 9.6K bytes - Viewed (0) -
cni/pkg/plugin/plugin_dryrun_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Feb 10 00:31:55 UTC 2024 - 8.4K bytes - Viewed (0)