diff --git a/e2e/internal/kubeclient/kubeclient.go b/e2e/internal/kubeclient/kubeclient.go index 8eeedd5cd..1f7397dd4 100644 --- a/e2e/internal/kubeclient/kubeclient.go +++ b/e2e/internal/kubeclient/kubeclient.go @@ -112,9 +112,6 @@ func (c *Kubeclient) Exec(ctx context.Context, namespace, pod string, argv []str Stderr: errBuf, Tty: false, }) - if err != nil { - return "", "", fmt.Errorf("executing command: %w", err) - } - return buf.String(), errBuf.String(), nil + return buf.String(), errBuf.String(), err }