Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for restartCount (0.11 sec)

  1. pkg/registry/core/pod/storage/storage_test.go

    			Phase:  api.PodPending,
    			ContainerStatuses: []api.ContainerStatus{
    				{Name: "ctr1", State: api.ContainerState{Running: &api.ContainerStateRunning{}}, RestartCount: 10, Ready: true},
    				{Name: "ctr2", State: api.ContainerState{Waiting: &api.ContainerStateWaiting{}}, RestartCount: 0},
    			},
    			NominatedNodeName: "nominated-node",
    		},
    	}
    
    	multiIPsPod := &api.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 07:18:44 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  2. tools/bug-report/pkg/cluster/cluster.go

    		podItem = r.CniPod[PodKey(namespace, pod)]
    	} else {
    		podItem = r.Pod[PodKey(namespace, pod)]
    	}
    	for _, cs := range podItem.Status.ContainerStatuses {
    		if cs.Name == container {
    			return int(cs.RestartCount)
    		}
    	}
    	return 0
    }
    
    // IsDiscoveryContainer reports whether the given container is the Istio discovery container.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 14 02:11:31 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  3. pkg/test/kube/dump.go

    func containerRestarts(pod corev1.Pod, container string) int {
    	for _, cs := range pod.Status.ContainerStatuses {
    		if cs.Name == container {
    			return int(cs.RestartCount)
    		}
    	}
    	// No match - assume that means no restart
    	return 0
    }
    
    func containerCrashed(pod corev1.Pod, container string) (bool, *corev1.ContainerStateTerminated) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  4. pkg/kubelet/container/runtime.go

    	// Runtime handler used to pull the image if any.
    	ImageRuntimeHandler string
    	// Hash of the container, used for comparison.
    	Hash uint64
    	// Number of times that the container has been restarted.
    	RestartCount int
    	// A string explains why container is in such a status.
    	Reason string
    	// Message written by the container before exiting (stored in
    	// TerminationMessagePath).
    	Message string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  5. pkg/controller/controller_utils.go

    			}
    		}
    	}
    	return &metav1.Time{}
    }
    
    func maxContainerRestarts(pod *v1.Pod) int {
    	maxRestarts := 0
    	for _, c := range pod.Status.ContainerStatuses {
    		maxRestarts = max(maxRestarts, int(c.RestartCount))
    	}
    	return maxRestarts
    }
    
    // FilterActivePods returns pods that have not terminated.
    func FilterActivePods(logger klog.Logger, pods []*v1.Pod) []*v1.Pod {
    	var result []*v1.Pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
Back to top