fix: history-max does not work when exec helm upgrade (#507)

Signed-off-by: iiiceoo <iiiceoo@foxmail.com>
This commit is contained in:
iiice_oo
2024-02-03 02:27:44 +08:00
committed by GitHub
parent 6a7cadef70
commit f7e92f1744
2 changed files with 1 additions and 1 deletions

View File

@@ -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