Skip to content

Commit

Permalink
fix: u.HelmBinary empty check for kustomize build
Browse files Browse the repository at this point in the history
Signed-off-by: moririnson <[email protected]>
  • Loading branch information
moririnson committed Nov 11, 2023
1 parent 1ef6584 commit f72a52c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ func (r *Runner) KustomizeBuild(srcDir string, tempDir string, opts ...Kustomize
if err != nil {
return "", err
}
kustomizeArgs = append(kustomizeArgs, f, "--enable-helm", "--helm-command="+u.HelmBinary)
kustomizeArgs = append(kustomizeArgs, f)

if u.HelmBinary != "" {
kustomizeArgs = append(kustomizeArgs, "--enable-helm", "--helm-command="+u.HelmBinary)
}

out, err := r.runInDir(tempDir, r.kustomizeBin(), append(kustomizeArgs, tempDir)...)
if err != nil {
Expand Down

0 comments on commit f72a52c

Please sign in to comment.