Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for RestartPolicyOnFailure (0.29 sec)

  1. pkg/controller/endpoint/endpoints_controller_test.go

    			Labels: map[string]string{
    				"foo": "bar",
    			},
    		},
    		Subsets: []v1.EndpointSubset{},
    	})
    	addNotReadyPodsWithSpecifiedRestartPolicyAndPhase(endpoints.podStore, ns, 1, 1, v1.RestartPolicyOnFailure, v1.PodSucceeded)
    	endpoints.serviceStore.Add(&v1.Service{
    		ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: ns},
    		Spec: v1.ServiceSpec{
    			Selector: map[string]string{"foo": "bar"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller.go

    // this method applies only to pods with restartPolicy == OnFailure
    func pastBackoffLimitOnFailure(job *batch.Job, pods []*v1.Pod) bool {
    	if job.Spec.Template.Spec.RestartPolicy != v1.RestartPolicyOnFailure {
    		return false
    	}
    	result := int32(0)
    	for i := range pods {
    		po := pods[i]
    		if po.Status.Phase == v1.PodRunning || po.Status.Phase == v1.PodPending {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  3. pkg/apis/core/validation/validation_test.go

    			}
    		})
    	}
    }
    
    func TestValidateRestartPolicy(t *testing.T) {
    	successCases := []core.RestartPolicy{
    		core.RestartPolicyAlways,
    		core.RestartPolicyOnFailure,
    		core.RestartPolicyNever,
    	}
    	for _, policy := range successCases {
    		if errs := validateRestartPolicy(&policy, field.NewPath("field")); len(errs) != 0 {
    			t.Errorf("expected success: %v", errs)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods_test.go

    	desiredState := v1.PodSpec{
    		NodeName: "machine",
    		Containers: []v1.Container{
    			{Name: "containerA"},
    			{Name: "containerB"},
    		},
    		RestartPolicy: v1.RestartPolicyOnFailure,
    	}
    
    	tests := []struct {
    		pod    *v1.Pod
    		status v1.PodPhase
    		test   string
    	}{
    		{&v1.Pod{Spec: desiredState, Status: v1.PodStatus{}}, v1.PodPending, "waiting"},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  5. pkg/controller/job/job_controller_test.go

    				return job, nil
    			}
    
    			// job & pods setup
    			job := newJob(tc.parallelism, tc.completions, tc.backoffLimit, batch.NonIndexedCompletion)
    			job.Spec.Template.Spec.RestartPolicy = v1.RestartPolicyOnFailure
    			job.Spec.Suspend = ptr.To(tc.suspend)
    			sharedInformerFactory.Batch().V1().Jobs().Informer().GetIndexer().Add(job)
    			podIndexer := sharedInformerFactory.Core().V1().Pods().Informer().GetIndexer()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  6. CHANGELOG/CHANGELOG-1.20.md

    - Fixed kubelet creating extra sandbox for pods with RestartPolicyOnFailure after all containers succeeded ([#92614](https://github.com/kubernetes/kubernetes/pull/92614), [@tnqn](https://github.com/tnqn)) [SIG Node and Testing]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 19 21:05:45 UTC 2022
    - 409K bytes
    - Viewed (0)
  7. pkg/apis/core/types.go

    // is RestartPolicyAlways.
    type RestartPolicy string
    
    // These are valid restart policies
    const (
    	RestartPolicyAlways    RestartPolicy = "Always"
    	RestartPolicyOnFailure RestartPolicy = "OnFailure"
    	RestartPolicyNever     RestartPolicy = "Never"
    )
    
    // ContainerRestartPolicy is the restart policy for a single container.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 268.9K bytes
    - Viewed (0)
  8. CHANGELOG/CHANGELOG-1.17.md

    - Fixed kubelet creating extra sandbox for pods with RestartPolicyOnFailure after all containers succeeded ([#92614](https://github.com/kubernetes/kubernetes/pull/92614), [@tnqn](https://github.com/tnqn)) [SIG Node and Testing]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 28 10:44:33 UTC 2021
    - 346.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/core/v1/types.go

    // If none of the following policies is specified, the default one
    // is RestartPolicyAlways.
    // +enum
    type RestartPolicy string
    
    const (
    	RestartPolicyAlways    RestartPolicy = "Always"
    	RestartPolicyOnFailure RestartPolicy = "OnFailure"
    	RestartPolicyNever     RestartPolicy = "Never"
    )
    
    // ContainerRestartPolicy is the restart policy for a single container.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 390.8K bytes
    - Viewed (0)
  10. CHANGELOG/CHANGELOG-1.18.md

    - Fixed kubelet creating extra sandbox for pods with RestartPolicyOnFailure after all containers succeeded ([#92614](https://github.com/kubernetes/kubernetes/pull/92614), [@tnqn](https://github.com/tnqn)) [SIG Node and Testing]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 16 17:18:28 UTC 2021
    - 373.2K bytes
    - Viewed (0)
Back to top