Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for PodFailed (0.18 sec)

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

    	// Check pod status stored in the status map.
    	checkPodStatus(t, kl, fittingPod, v1.PodPending)
    	checkPodStatus(t, kl, emptyPod, v1.PodFailed)
    	checkPodStatus(t, kl, missingPod, v1.PodPending)
    	checkPodStatus(t, kl, failedPod, v1.PodFailed)
    }
    
    // TODO(filipg): This test should be removed once StatusSyncer can do garbage collection without external signal.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods.go

    	if s.Phase != v1.PodFailed && s.Phase != v1.PodSucceeded {
    		switch {
    		case oldPodStatus.Phase == v1.PodFailed || oldPodStatus.Phase == v1.PodSucceeded:
    			klog.V(4).InfoS("Status manager phase was terminal, updating phase to match", "pod", klog.KObj(pod), "phase", oldPodStatus.Phase)
    			s.Phase = oldPodStatus.Phase
    		case pod.Status.Phase == v1.PodFailed || pod.Status.Phase == v1.PodSucceeded:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_pods_test.go

    			expected: v1.PodStatus{
    				Phase:    v1.PodFailed,
    				HostIP:   "127.0.0.1",
    				HostIPs:  []v1.HostIP{{IP: "127.0.0.1"}, {IP: "::1"}},
    				QOSClass: v1.PodQOSBestEffort,
    				Conditions: []v1.PodCondition{
    					{Type: v1.PodInitialized, Status: v1.ConditionTrue},
    					{Type: v1.PodReady, Status: v1.ConditionFalse, Reason: "PodFailed"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  6. pkg/controller/job/job_controller.go

    		// availability to opt-out into the old behavior.
    		return p.Status.Phase == v1.PodFailed
    	}
    	if p.Status.Phase == v1.PodFailed {
    		return true
    	}
    	if onlyReplaceFailedPods(job) {
    		return p.Status.Phase == v1.PodFailed
    	}
    	// Count deleted Pods as failures to account for orphan Pods that
    	// never have a chance to reach the Failed phase.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  7. pkg/registry/core/pod/storage/eviction_test.go

    			}},
    			eviction:      &policy.Eviction{ObjectMeta: metav1.ObjectMeta{Name: "t4", Namespace: "default"}, DeleteOptions: metav1.NewDeleteOptions(0)},
    			expectError:   "",
    			podPhase:      api.PodFailed,
    			expectDeleted: true,
    			podName:       "t4",
    		},
    		{
    			name: "matching pdbs with disruptions allowed",
    			pdbs: []runtime.Object{&policyv1.PodDisruptionBudget{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet.go

    		podStatus.IPs = []string{apiPodStatus.PodIP}
    	}
    
    	// If the pod is terminal, we don't need to continue to setup the pod
    	if apiPodStatus.Phase == v1.PodSucceeded || apiPodStatus.Phase == v1.PodFailed {
    		kl.statusManager.SetPodStatus(pod, apiPodStatus)
    		isTerminal = true
    		return isTerminal, nil
    	}
    
    	// If the pod should not be running, we request the pod's containers be stopped. This is not the same
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  9. pkg/printers/internalversion/printers.go

    	podFailedConditions  = []metav1.TableRowCondition{{Type: metav1.RowCompleted, Status: metav1.ConditionTrue, Reason: string(api.PodFailed), Message: "The pod failed."}}
    )
    
    func printPodList(podList *api.PodList, options printers.GenerateOptions) ([]metav1.TableRow, error) {
    	rows := make([]metav1.TableRow, 0, len(podList.Items))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  10. pkg/printers/internalversion/printers_test.go

    		{
    			// Test pod condition failed
    			api.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "test17"},
    				Spec:       api.PodSpec{Containers: make([]api.Container, 1)},
    				Status: api.PodStatus{
    					Phase: api.PodFailed,
    					ContainerStatuses: []api.ContainerStatus{
    						{
    							Ready:        false,
    							RestartCount: 0,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
Back to top