From aca518bd99550a94b3108fde3bd7bff7d96d008c Mon Sep 17 00:00:00 2001 From: waterWang <672684719@qq.com> Date: Sat, 22 Aug 2026 13:56:16 +0800 Subject: [PATCH] fix(template): trim trailing newline from all rendered manifest paths --- pkg/action/action.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/action/action.go b/pkg/action/action.go index 3c66b9cac..c88749a71 100644 --- a/pkg/action/action.go +++ b/pkg/action/action.go @@ -473,7 +473,7 @@ func (cfg *Configuration) renderResources(ctx context.Context, ch *chart.Chart, if strings.TrimSpace(content) == "" { continue } - fmt.Fprintf(b, "---\n# Source: %s\n%s\n", name, content) + fmt.Fprintf(b, "---\n# Source: %s\n%s\n", name, strings.TrimRight(content, "\n")) } return hs, b, "", err }