Skip to content

Commit

Permalink
feat: split up chart args
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Jan 29, 2024
1 parent 5e8747e commit 1827167
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion squadron.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,13 @@ func (sq *Squadron) Up(ctx context.Context, helmArgs []string, username, version
if strings.Contains(v.Chart.Repository, "file://") {
cmd.Args(strings.TrimPrefix(v.Chart.Repository, "file://"))
} else {
cmd.Args(v.Chart.Name, "--repo", v.Chart.Repository, "--version", v.Chart.Version)
cmd.Args(v.Chart.Name)
if v.Chart.Repository != "" {
cmd.Args("--repo", v.Chart.Repository)
}
if v.Chart.Version != "" {
cmd.Args("--version", v.Chart.Version)
}
}

if out, err := cmd.Run(gctx); err != nil {
Expand Down

0 comments on commit 1827167

Please sign in to comment.