Merge pull request #128511 from aojea/revert-128508-fix-118141

Revert "Don't stop the next poll when it fails to grab logs"
This commit is contained in:
Kubernetes Prow Robot 2024-11-02 14:53:26 +00:00 committed by GitHub
commit 406fb26628
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -509,8 +509,7 @@ func assertFilesContain(ctx context.Context, fileNames []string, fileDir string,
for _, container := range pod.Spec.Containers {
logs, err := e2epod.GetPodLogs(ctx, client, pod.Namespace, pod.Name, container.Name)
if err != nil {
framework.Logf("Unable to get logs for %s: %v", container.Name, err)
continue
return false, fmt.Errorf("unexpected error getting pod client logs for %s: %v", container.Name, err)
}
framework.Logf("Pod client logs for %s: %s", container.Name, logs)
}