From b5915f605b8ea31c2e53d60054ae7cd6cb763165 Mon Sep 17 00:00:00 2001 From: Patrick Schratz Date: Fri, 8 Nov 2024 11:00:03 +0100 Subject: [PATCH] fix `error="io: read/write on closed pipe"` on k8s backend (#4281) --- pipeline/backend/kubernetes/kubernetes.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pipeline/backend/kubernetes/kubernetes.go b/pipeline/backend/kubernetes/kubernetes.go index ed6f19d06..b1f1a0447 100644 --- a/pipeline/backend/kubernetes/kubernetes.go +++ b/pipeline/backend/kubernetes/kubernetes.go @@ -381,7 +381,6 @@ func (e *kube) TailStep(ctx context.Context, step *types.Step, taskUUID string) go func() { defer logs.Close() defer wc.Close() - defer rc.Close() _, err = io.Copy(wc, logs) if err != nil {