mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-21 18:58:03 +00:00
fix: history-max does not work when exec helm upgrade (#507)
Signed-off-by: iiiceoo <iiiceoo@foxmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user