func LogFailedContainers(c clientset.Interface, ns string, logFunc func(ftm string, args ...interface{})) {
	podList, err := c.CoreV1().Pods(ns).List(context.TODO(), metav1.ListOptions{})
	if err != nil {
		logFunc("Error getting pods in namespace '%s': %v", ns, err)
		return
	}
	logFunc("Running kubectl logs on non-ready containers in %v", ns)
	for _, pod := range podList.Items {
		if res, err := testutils.PodRunningReady(&pod); !res || err != nil {
			kubectlLogPod(c, pod, "", e2elog.Logf)
		}
	}
}
// LogFailedContainers runs `kubectl logs` on a failed containers.
LogFailedContainers runs `kubectl logs` on a failed containers.
// LogFailedContainers runs ` kubectl logs ` on a failed containers .
func LogFailedContainers(c clientset.Interface, ns string, logFunc func(ftm string, args ...interface{})) {
	podList, err := c.CoreV1().Pods(ns).List(context.TODO(), metav1.ListOptions{})
	if err != nil {
		logFunc("Error getting pods in namespace '%s': %v", ns, err)
		return
	}
	logFunc("Running kubectl logs on non-ready containers in %v", ns)
	for _, pod := range podList.Items {
		if res, err := testutils.PodRunningReady(&pod); !res || err != nil {
			kubectlLogPod(c, pod, "", e2elog.Logf)
		}
	}
}
func LogFailedContainers ( c clientset . Interface , ns string , logFunc func ( ftm string , args ... interface { } ) ) { podList , err := c . CoreV1 ( ) . Pods ( ns ) . List ( context . TODO ( ) , metav1 . ListOptions { } ) if err != nil { logFunc ( " " , ns , err ) return } logFunc ( " " , ns ) for _ , pod := range podList . Items { if res , err := testutils . PodRunningReady ( & pod ) ; ! res || err != nil { kubectlLogPod ( c , pod , " " , e2elog . Logf ) } } }
LogFailedContainers runs `kubectl logs` on a failed containers.
LogFailedContainers runs ` kubectl logs ` on a failed containers .