Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for PodFailed (0.36 sec)

  1. pkg/controller/job/pod_failure_policy_test.go

    							Values:   []int32{2, 3},
    						},
    					},
    				},
    			},
    			failedPod: &v1.Pod{
    				ObjectMeta: validPodObjectMeta,
    				Status: v1.PodStatus{
    					Phase: v1.PodFailed,
    					ContainerStatuses: []v1.ContainerStatus{
    						{
    							Name: "main-container",
    							State: v1.ContainerState{
    								Terminated: &v1.ContainerStateTerminated{
    									ExitCode: 2,
    								},
    							},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  2. pkg/controller/job/indexed_job_utils_test.go

    				},
    			},
    			pods: []*v1.Pod{
    				buildPod().uid("a").indexFailureCount("0").phase(v1.PodFailed).index("0").trackingFinalizer().Pod,
    				buildPod().uid("b").indexFailureCount("1").phase(v1.PodFailed).index("1").trackingFinalizer().Pod,
    				buildPod().uid("c").indexFailureCount("0").phase(v1.PodFailed).index("2").trackingFinalizer().Pod,
    			},
    			wantPodsWithDelayedDeletionPerIndex: []string{"a", "c"},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  3. pkg/controller/podgc/gc_controller_test.go

    		enablePodDisruptionConditions bool
    	}{
    		{
    			name: "delete pod a which is PodFailed and pod b which is PodSucceeded; PodDisruptionConditions enabled",
    			pods: []nameToPhase{
    				{name: "a", phase: v1.PodFailed},
    				{name: "b", phase: v1.PodSucceeded},
    				{name: "c", phase: v1.PodFailed},
    			},
    			threshold:                     1,
    			deletedPodNames:               sets.New("a", "b"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 08:16:48 UTC 2024
    - 29K bytes
    - Viewed (0)
  4. pkg/kubelet/status/generate.go

    	UnknownContainerStatuses = "UnknownContainerStatuses"
    	// PodCompleted says that all related containers have succeeded.
    	PodCompleted = "PodCompleted"
    	// PodFailed says that the pod has failed and as such the containers have failed.
    	PodFailed = "PodFailed"
    	// ContainersNotReady says that one or more containers are not ready.
    	ContainersNotReady = "ContainersNotReady"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. pkg/kubelet/status/status_manager_test.go

    			},
    		},
    		"Failed pod": {
    			status: v1.PodStatus{
    				Phase: v1.PodFailed,
    			},
    			wantStatus: v1.PodStatus{
    				Phase: v1.PodFailed,
    			},
    		},
    		"Unknown pod": {
    			status: v1.PodStatus{
    				Phase: v1.PodUnknown,
    			},
    			wantStatus: v1.PodStatus{
    				Phase: v1.PodFailed,
    			},
    		},
    		"Unknown phase pod": {
    			status: v1.PodStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  6. pkg/client/conditions/conditions.go

    		return false, errors.NewNotFound(schema.GroupResource{Resource: "pods"}, "")
    	}
    	switch t := event.Object.(type) {
    	case *v1.Pod:
    		switch t.Status.Phase {
    		case v1.PodRunning:
    			return true, nil
    		case v1.PodFailed, v1.PodSucceeded:
    			return false, ErrPodCompleted
    		}
    	}
    	return false, nil
    }
    
    // PodCompleted returns true if the pod has run to completion, false if the pod has not yet
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 13:43:36 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. pkg/controller/job/job_controller_test.go

    				buildPod().uid("c").phase(v1.PodSucceeded).trackingFinalizer().Pod,
    				buildPod().uid("d").phase(v1.PodFailed).Pod,
    				buildPod().uid("e").phase(v1.PodFailed).trackingFinalizer().Pod,
    				buildPod().uid("f").phase(v1.PodFailed).trackingFinalizer().Pod,
    				buildPod().uid("g").phase(v1.PodFailed).trackingFinalizer().Pod,
    			},
    			wantSucceeded: 4,
    			wantFailed:    5,
    		},
    		"deleted pods": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  8. pkg/client/conditions/conditions_test.go

    						Phase: corev1.PodRunning,
    					},
    				},
    			},
    			want:    true,
    			wantErr: false,
    		},
    		{
    			name: "Pod Status is PodFailed",
    			event: watch.Event{
    				Type: watch.Added,
    				Object: &corev1.Pod{
    					Status: corev1.PodStatus{
    						Phase: corev1.PodFailed,
    					},
    				},
    			},
    			want:    false,
    			wantErr: true,
    		},
    		{
    			name: "Object type is not pod",
    			event: watch.Event{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 12 02:48:46 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/pod_test.go

    		t.Error(err)
    	}
    	if handled != 4 {
    		t.Errorf("notified workload handler %d times, want %d", handled, 4)
    	}
    
    	assert.Equal(t, c.pods.getPodsByIP(ip), nil)
    
    	if err := f(nil, &v1.Pod{ObjectMeta: pod2, Status: v1.PodStatus{Conditions: readyCondition, PodIP: ip, Phase: v1.PodFailed}}, model.EventDelete); err != nil {
    		t.Error(err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 18:27:40 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. pkg/controller/job/backoff_utils_test.go

    					},
    				})
    			}
    
    			for _, finishTime := range tc.newFailedPods {
    				newFailedPods = append(newFailedPods, &v1.Pod{
    					ObjectMeta: metav1.ObjectMeta{},
    					Status: v1.PodStatus{
    						Phase: v1.PodFailed,
    						ContainerStatuses: []v1.ContainerStatus{
    							{
    								State: v1.ContainerState{
    									Terminated: &v1.ContainerStateTerminated{
    										FinishedAt: finishTime,
    									},
    								},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 07:46:41 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top