Specify the heapster container when gathering logs

Fixes #27452
This commit is contained in:
Kris 2016-06-21 09:59:24 -07:00
parent 9f06e0f1a6
commit 9eeec72ef2

View File

@ -269,6 +269,7 @@ func printDebugInfo(c *client.Client) {
return
}
for _, pod := range podList.Items {
framework.Logf("Kubectl output:\n%v", framework.RunKubectlOrDie("log", pod.Name, "--namespace=kube-system"))
framework.Logf("Kubectl output:\n%v",
framework.RunKubectlOrDie("log", pod.Name, "--namespace=kube-system", "--container=heapster"))
}
}