Skip to content

Commit 343ca6d

Browse files
committed
initialzier: propagate error from copying logs
1 parent 95cbf37 commit 343ca6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controllers/common.go

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ func inspectTestRun(ctx context.Context, log logr.Logger, k6 v1alpha1.TestRunI,
103103
_, err = io.Copy(buf, podLogs)
104104
if err != nil {
105105
log.Error(err, "unable to copy logs from the pod")
106+
returnErr = err
106107
return
107108
}
108109

0 commit comments

Comments
 (0)