mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Dumping logs of federation pods on test failure
This commit is contained in:
parent
4a040d11ca
commit
ca22a28fff
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user