Skip to content

Commit

Permalink
fix(helm): pass the no-hooks flag during upgrade
Browse files Browse the repository at this point in the history
Helm upgrades were not passing the no-hooks value to the server.

Closes #1590
  • Loading branch information
technosophos committed Nov 30, 2016
1 parent fa462a6 commit 189bc43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/helm/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ func (u *upgradeCmd) run() error {
return err
}

_, err = u.client.UpdateRelease(u.release, chartPath, helm.UpdateValueOverrides(rawVals), helm.UpgradeDryRun(u.dryRun), helm.UpgradeDisableHooks(u.disableHooks))
_, err = u.client.UpdateRelease(
u.release,
chartPath,
helm.UpdateValueOverrides(rawVals),
helm.UpgradeDryRun(u.dryRun),
helm.UpgradeDisableHooks(u.disableHooks))
if err != nil {
return fmt.Errorf("UPGRADE FAILED: %v", prettyError(err))
}
Expand Down
1 change: 1 addition & 0 deletions pkg/helm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func (h *Client) UpdateRelease(rlsName string, chstr string, opts ...UpdateOptio
req.Chart = chart
req.DryRun = h.opts.dryRun
req.Name = rlsName
req.DisableHooks = h.opts.disableHooks
ctx := NewContext()

if h.opts.before != nil {
Expand Down

0 comments on commit 189bc43

Please sign in to comment.