Revert "Don't stop the next poll when it fails to grab logs"

This commit is contained in:
Antonio Ojea
2024-11-02 09:50:11 +01:00
committed by GitHub
parent fa77f7f548
commit e973b05f89

View File

@@ -508,10 +508,7 @@ 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)
if err != nil {
framework.Logf("Unable to get logs for %s: %v", container.Name, err)
continue
}
framework.ExpectNoError(err)
framework.Logf("Pod client logs for %s: %s", container.Name, logs)
}