From 9481c9afed0301a38c004e575368939a420b8156 Mon Sep 17 00:00:00 2001 From: iiice_oo Date: Mon, 22 Jan 2024 17:33:32 +0800 Subject: [PATCH] feat: Set history-max through env HELM_MAX_HISTORY (default 10) (#500) Signed-off-by: iiiceoo --- pkg/dashboard/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/dashboard/server.go b/pkg/dashboard/server.go index e0206827..1c901c51 100644 --- a/pkg/dashboard/server.go +++ b/pkg/dashboard/server.go @@ -199,6 +199,7 @@ 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 }