From f1d3b93079e4bbdbc24b0ada6378b9c30e2788d2 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Wed, 18 Mar 2026 08:24:19 +0800 Subject: [PATCH] add more files Signed-off-by: yxxhero --- pkg/helmexec/exec.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkg/helmexec/exec.go b/pkg/helmexec/exec.go index 4b061266..0ef60b3e 100644 --- a/pkg/helmexec/exec.go +++ b/pkg/helmexec/exec.go @@ -526,8 +526,13 @@ func (helm *execer) List(context HelmContext, filter string, flags ...string) (s // // This fixes it by removing the header from the v3 output, so that the output is formatted the same as that of v2. lines := strings.Split(string(out), "\n") - lines = lines[1:] - out = []byte(strings.Join(lines, "\n")) + var filtered []string + for _, line := range lines[1:] { + if trimmed := strings.TrimSpace(line); trimmed != "" { + filtered = append(filtered, trimmed) + } + } + out = []byte(strings.Join(filtered, "\n")) helm.info(out) return string(out), err }