Skip to content

Commit

Permalink
fix: history-max does not work when exec helm upgrade (#507)
Browse files Browse the repository at this point in the history
Signed-off-by: iiiceoo <iiiceoo@foxmail.com>
  • Loading branch information
iiiceoo authored Feb 2, 2024
1 parent 6a7cade commit f7e92f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions pkg/dashboard/objects/releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ func (r *Release) Upgrade(repoChart string, version string, justTemplate bool, v
}

cmd := action.NewUpgrade(hc)
cmd.MaxHistory = r.Settings.MaxHistory

cmd.Namespace = r.Settings.Namespace()
cmd.Version = version
Expand Down
1 change: 0 additions & 1 deletion pkg/dashboard/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ func NewHelmConfig(origSettings *cli.EnvSettings, ns string) (*action.Configurat
helmDriver, log.Debugf); err != nil {
return nil, errorx.Decorate(err, "failed to init Helm action config")
}
actionConfig.Releases.MaxHistory = origSettings.MaxHistory

return actionConfig, nil
}

0 comments on commit f7e92f1

Please sign in to comment.