From 1a7a73b47bd1b0475422211dbacd0d22c99e2394 Mon Sep 17 00:00:00 2001 From: guofutan Date: Sun, 23 Jan 2022 12:25:41 +0800 Subject: [PATCH] fix: support empty args with --post-renderer-args Signed-off-by: guofutan --- cmd/helm/flags.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/helm/flags.go b/cmd/helm/flags.go index a432535ed..99ad31184 100644 --- a/cmd/helm/flags.go +++ b/cmd/helm/flags.go @@ -164,10 +164,8 @@ func (p *postRendererArgsSlice) Type() string { } func (p *postRendererArgsSlice) Set(val string) error { - if val == "" { - return nil - } + // a post-renderer defined by a user may accept empty arguments p.options.args = append(p.options.args, val) if p.options.binaryPath == "" {