- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for containerRestarts (0.24 sec)
-
tools/bug-report/pkg/cluster/cluster.go
if p[pod] == nil { p[pod] = make(map[string]any) } c := p[pod].(map[string]any) c[container] = nil } // ContainerRestarts returns the number of container restarts for the given container. func (r *Resources) ContainerRestarts(namespace, pod, container string, isCniPod bool) int { var podItem *corev1.Pod if isCniPod { podItem = r.CniPod[PodKey(namespace, pod)] } else {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 14 02:11:31 UTC 2023 - 10.9K bytes - Viewed (0) -
pkg/test/kube/dump.go
if err := os.WriteFile(outPath, out, os.ModePerm); err != nil { scopes.Framework.Infof("Error writing out pod events to file: %v", err) } } } // containerRestarts checks how many times container has ever restarted func containerRestarts(pod corev1.Pod, container string) int { for _, cs := range pod.Status.ContainerStatuses { if cs.Name == container { return int(cs.RestartCount) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 22.2K bytes - Viewed (0) -
tools/bug-report/pkg/bugreport/bugreport.go
log.Infof("Getting logs for %s/%s/%s...", namespace, pod, container) clog, err := runner.Logs(namespace, pod, container, false, config.DryRun) if err != nil { return "", nil, 0, err } if resources.ContainerRestarts(namespace, pod, container, common.IsCniPod(pod)) > 0 { pclog, err := runner.Logs(namespace, pod, container, true, config.DryRun) if err != nil { return "", nil, 0, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 05 20:57:29 UTC 2024 - 20.7K bytes - Viewed (0)