mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Avoid early exit when collecting post-E2E failure logs.
collectPodsAndNetworkPolicies() is called to collect diagnostics after a failure. Previously, if it encountered a failure in getting the logs it would call Failf(), discarding the rest of the diagnostics immediately.
This commit is contained in:
parent
4ccfeb18d9
commit
73fe9c9915
@ -1829,7 +1829,7 @@ func collectPodsAndNetworkPolicies(f *framework.Framework, podClient *v1.Pod) ([
|
|||||||
logs, logErr = e2epod.GetPreviousPodLogs(f.ClientSet, f.Namespace.Name, podClient.Name, fmt.Sprintf("%s-container", podClient.Name))
|
logs, logErr = e2epod.GetPreviousPodLogs(f.ClientSet, f.Namespace.Name, podClient.Name, fmt.Sprintf("%s-container", podClient.Name))
|
||||||
}
|
}
|
||||||
if logErr != nil {
|
if logErr != nil {
|
||||||
framework.Failf("Error getting container logs: %s", logErr)
|
framework.Logf("Error getting container logs: %s", logErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Collect current NetworkPolicies applied in the test namespace.
|
// Collect current NetworkPolicies applied in the test namespace.
|
||||||
|
Loading…
Reference in New Issue
Block a user