Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for containerRestarts (0.53 sec)

  1. 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)
  2. 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)
Back to top