Skip to content

Commit

Permalink
fix: support empty args with --post-renderer-args
Browse files Browse the repository at this point in the history
Signed-off-by: guofutan <guofutan@tencent.com>
  • Loading branch information
guofutan committed Jan 23, 2022
1 parent 04e79e9 commit 1a7a73b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/helm/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand Down

0 comments on commit 1a7a73b

Please sign in to comment.