From b3c7c49098bc8d0b2b0b0ac83a126402006356c7 Mon Sep 17 00:00:00 2001 From: Quinton Hoole Date: Fri, 1 Jul 2016 11:23:29 -0700 Subject: [PATCH] Print kube-dns pod logs on federation e2e test failure. --- test/e2e/framework/framework.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/framework/framework.go b/test/e2e/framework/framework.go index 4ca5c5ebde..a7649e7c77 100644 --- a/test/e2e/framework/framework.go +++ b/test/e2e/framework/framework.go @@ -280,6 +280,8 @@ func (f *Framework) AfterEach() { 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"}) + // Print logs of kube-dns pod + LogPodsWithLabels(f.Client, "kube-system", map[string]string{"k8s-app": "kube-dns"}) } }