Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for RestartPolicyNever (0.33 sec)

  1. 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)
  2. pkg/kubelet/prober/worker.go

    			w.resultsManager.Set(w.containerID, results.Failure, w.pod)
    		}
    		// Abort if the container will not be restarted.
    		return c.State.Terminated == nil ||
    			w.pod.Spec.RestartPolicy != v1.RestartPolicyNever
    	}
    
    	// Graceful shutdown of the pod.
    	if w.pod.ObjectMeta.DeletionTimestamp != nil && (w.probeType == liveness || w.probeType == startup) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 27 01:28:06 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  3. 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)
  4. pkg/apis/core/fuzzer/fuzzer.go

    			*p = policies[c.Rand.Intn(len(policies))]
    		},
    		func(rp *core.RestartPolicy, c fuzz.Continue) {
    			policies := []core.RestartPolicy{core.RestartPolicyAlways, core.RestartPolicyNever, core.RestartPolicyOnFailure}
    			*rp = policies[c.Rand.Intn(len(policies))]
    		},
    		// core.DownwardAPIVolumeFile needs to have a specific func since FieldRef has to be
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 04:32:01 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
Back to top