Skip to content

Commit

Permalink
Adds version flag to helm upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
wbreza committed Nov 21, 2023
1 parent c220f13 commit c460085
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/azd/pkg/helm/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ func (c *Cli) Install(ctx context.Context, release *Release) error {

func (c *Cli) Upgrade(ctx context.Context, release *Release) error {
runArgs := exec.NewRunArgs("helm", "upgrade", release.Name, release.Chart, "--install")
if release.Version != "" {
runArgs = runArgs.AppendParams("--version", release.Version)
}

if release.Values != "" {
runArgs = runArgs.AppendParams("--values", release.Values)
}
Expand Down

0 comments on commit c460085

Please sign in to comment.