Commit ca22a28f authored by nikhiljindal's avatar nikhiljindal

Dumping logs of federation pods on test failure

parent 4a040d11
...@@ -264,6 +264,10 @@ func (f *Framework) AfterEach() { ...@@ -264,6 +264,10 @@ func (f *Framework) AfterEach() {
DumpAllNamespaceInfo(f.Client, f.Namespace.Name) DumpAllNamespaceInfo(f.Client, f.Namespace.Name)
By(fmt.Sprintf("Dumping a list of prepulled images on each node")) By(fmt.Sprintf("Dumping a list of prepulled images on each node"))
LogPodsWithLabels(f.Client, api.NamespaceSystem, ImagePullerLabels) 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) summaries := make([]TestDataSummary, 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment