mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #128508 from carlory/fix-118141
Don't stop the next poll when it fails to grab logs
This commit is contained in:
commit
fa77f7f548
@ -508,7 +508,10 @@ func assertFilesContain(ctx context.Context, fileNames []string, fileDir string,
|
||||
// grab logs from all the containers
|
||||
for _, container := range pod.Spec.Containers {
|
||||
logs, err := e2epod.GetPodLogs(ctx, client, pod.Namespace, pod.Name, container.Name)
|
||||
framework.ExpectNoError(err)
|
||||
if err != nil {
|
||||
framework.Logf("Unable to get logs for %s: %v", container.Name, err)
|
||||
continue
|
||||
}
|
||||
framework.Logf("Pod client logs for %s: %s", container.Name, logs)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user