Merge pull request #105451 from claudiubelu/tests/log-pod-logs

tests: Fetch the pod logs in failed cases
This commit is contained in:
Kubernetes Prow Robot
2021-11-18 13:33:36 -08:00
committed by GitHub
2 changed files with 70 additions and 6 deletions

View File

@@ -899,7 +899,7 @@ func DumpAllNamespaceInfo(c clientset.Interface, namespace string) {
return c.CoreV1().Events(ns).List(context.TODO(), opts)
}, namespace)
e2epod.DumpAllPodInfoForNamespace(c, namespace)
e2epod.DumpAllPodInfoForNamespace(c, namespace, TestContext.ReportDir)
// If cluster is large, then the following logs are basically useless, because:
// 1. it takes tens of minutes or hours to grab all of them