Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. pkg/controller/deployment/recreate_test.go

    			oldRSs: []*apps.ReplicaSet{newRSWithStatus("rs-1", 0, 0, nil)},
    			podMap: map[types.UID][]*v1.Pod{
    				"uid-1": {
    					{
    						Status: v1.PodStatus{
    							Phase: v1.PodFailed,
    						},
    					},
    					{
    						Status: v1.PodStatus{
    							Phase: v1.PodSucceeded,
    						},
    					},
    				},
    			},
    			hasOldPodsRunning: false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. pkg/volume/util/recyclerclient/recycler_client_test.go

    				newPodEvent(watch.Modified, "podRecyclerFailure", v1.PodRunning, ""),
    				newPodEvent(watch.Modified, "podRecyclerFailure", v1.PodFailed, "Pod was active on the node longer than specified deadline"),
    			},
    			expectedEvents: []mockEvent{
    				{v1.EventTypeNormal, "Successfully assigned recycler-for-podRecyclerFailure to 127.0.0.1"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 14:16:53 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  5. pkg/controller/job/tracking_utils.go

    	metrics.TerminatedPodsTrackingFinalizerTotal.WithLabelValues(event).Inc()
    }
    
    func isFinishedPodWithTrackingFinalizer(pod *v1.Pod) bool {
    	if pod == nil {
    		return false
    	}
    	return (pod.Status.Phase == v1.PodFailed || pod.Status.Phase == v1.PodSucceeded) && hasJobTrackingFinalizer(pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 05:40:02 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. pkg/controller/deployment/recreate.go

    		// If the pods belong to the new ReplicaSet, ignore.
    		if newRS != nil && newRS.UID == rsUID {
    			continue
    		}
    		for _, pod := range podList {
    			switch pod.Status.Phase {
    			case v1.PodFailed, v1.PodSucceeded:
    				// Don't count pods in terminal state.
    				continue
    			case v1.PodUnknown:
    				// v1.PodUnknown is a deprecated status.
    				// This logic is kept for backward compatibility.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 13 20:32:13 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  7. pkg/scheduler/metrics/resources/resources.go

    	switch {
    	case len(pod.Spec.NodeName) == 0:
    		// unscheduled pods cannot be terminal
    	case pod.Status.Phase == v1.PodSucceeded, pod.Status.Phase == v1.PodFailed:
    		terminal = true
    		// TODO: resolve https://github.com/kubernetes/kubernetes/issues/96515 and add a condition here
    		// for checking that terminal state
    	}
    	if terminal {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 23:15:53 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  8. pkg/kubelet/util/pod_startup_latency_tracker.go

    	p.lock.Lock()
    	defer p.lock.Unlock()
    
    	// if the pod is terminal, we do not have to track it anymore for startup
    	if pod.Status.Phase == v1.PodFailed || pod.Status.Phase == v1.PodSucceeded {
    		delete(p.pods, pod.UID)
    		return
    	}
    
    	state := p.pods[pod.UID]
    	if state == nil {
    		// create a new record for pod, only if it was not yet acknowledged by the Kubelet
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 15 06:09:49 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. pkg/controller/job/tracking_utils_test.go

    					Phase: v1.PodRunning,
    				},
    			},
    			newPod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Finalizers: []string{batch.JobTrackingFinalizer},
    				},
    				Status: v1.PodStatus{
    					Phase: v1.PodFailed,
    				},
    			},
    			wantAdd: 1,
    		},
    		"pod with finalizer succeeds": {
    			oldPod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Finalizers: []string{batch.JobTrackingFinalizer},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 05:40:02 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  10. pkg/volume/util/recyclerclient/recycler_client.go

    			switch event.Type {
    			case watch.Added, watch.Modified:
    				if pod.Status.Phase == v1.PodSucceeded {
    					// Recycle succeeded.
    					return nil
    				}
    				if pod.Status.Phase == v1.PodFailed {
    					if pod.Status.Message != "" {
    						return fmt.Errorf(pod.Status.Message)
    					}
    					return fmt.Errorf("pod failed, pod.Status.Message unknown")
    				}
    
    			case watch.Deleted:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 8.5K bytes
    - Viewed (0)
Back to top