- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for RestartPolicyNever (0.19 sec)
-
pkg/volume/util/operationexecutor/operation_executor_test.go
VolumeMounts: []v1.VolumeMount{ { Name: secretName, MountPath: "/data", }, }, }, }, RestartPolicy: v1.RestartPolicyNever, }, } } func getTestPodWithGCEPD(podName, pdName string) *v1.Pod { return &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: podName, UID: types.UID(podName + string(uuid.NewUUID())),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 26.9K bytes - Viewed (0) -
pkg/kubelet/container/helpers.go
if status.State == ContainerStateUnknown || status.State == ContainerStateCreated { return true } // Check RestartPolicy for dead container if pod.Spec.RestartPolicy == v1.RestartPolicyNever { klog.V(4).InfoS("Already ran container, do nothing", "pod", klog.KObj(pod), "containerName", container.Name) return false } if pod.Spec.RestartPolicy == v1.RestartPolicyOnFailure { // Check the exit code.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 14.3K bytes - Viewed (0) -
pkg/kubelet/container/helpers_test.go
State: ContainerStateUnknown, }, { Name: "failed", State: ContainerStateExited, ExitCode: 3, }, }, } policies := []v1.RestartPolicy{ v1.RestartPolicyNever, v1.RestartPolicyOnFailure, v1.RestartPolicyAlways, } // test policies expected := map[string][]bool{ "no-history": {true, true, true}, "alive": {false, false, false},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 01:55:46 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/volume/plugins.go
ObjectMeta: metav1.ObjectMeta{ GenerateName: "pv-recycler-", Namespace: metav1.NamespaceDefault, }, Spec: v1.PodSpec{ ActiveDeadlineSeconds: &timeout, RestartPolicy: v1.RestartPolicyNever, Volumes: []v1.Volume{ { Name: "vol", // IMPORTANT! All plugins using this template MUST // override pod.Spec.Volumes[0].VolumeSource Recycler
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 16:13:15 UTC 2024 - 38.2K bytes - Viewed (0)