Merge pull request #27504 from nikhiljindal/debugfederationTests

Automatic merge from submit-queue

Dumping logs of federation pods (federation-apiserver, federation-controller-manager) on e2e test failure

Ref https://github.com/kubernetes/kubernetes/issues/26762

This should help with debugging failures.
Right now there is no way to access those logs.

@kubernetes/sig-cluster-federation @colhom
pull/6/head
k8s-merge-robot 2016-06-16 10:55:16 -07:00 committed by GitHub
commit d7d8d2e518
1 changed files with 4 additions and 0 deletions

View File

@ -264,6 +264,10 @@ func (f *Framework) AfterEach() {
DumpAllNamespaceInfo(f.Client, f.Namespace.Name)
By(fmt.Sprintf("Dumping a list of prepulled images on each node"))
LogPodsWithLabels(f.Client, api.NamespaceSystem, ImagePullerLabels)
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"})
}
}
summaries := make([]TestDataSummary, 0)