Add nethealth prepull container output to e2e run logs

This commit is contained in:
Girish Kalele
2016-06-07 18:02:55 -07:00
parent 3ba5816e46
commit ee7ca66dba
4 changed files with 45 additions and 10 deletions

View File

@@ -263,7 +263,7 @@ func (f *Framework) AfterEach() {
if CurrentGinkgoTestDescription().Failed && TestContext.DumpLogsOnFailure {
DumpAllNamespaceInfo(f.Client, f.Namespace.Name)
By(fmt.Sprintf("Dumping a list of prepulled images on each node"))
LogPodsWithLabels(f.Client, api.NamespaceSystem, ImagePullerLabels)
LogContainersInPodsWithLabels(f.Client, api.NamespaceSystem, ImagePullerLabels, "image-puller")
if f.federated {
// Print logs of federation control plane pods (federation-apiserver and federation-controller-manager)
LogPodsWithLabels(f.Client, "federation", map[string]string{"app": "federated-cluster"})