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:
Kubernetes Prow Robot 2024-11-02 06:35:26 +00:00 committed by GitHub
commit fa77f7f548
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}