From f5d098876a95cdc7f435623d7c10df1d46fdf036 Mon Sep 17 00:00:00 2001 From: Wi1dcard Date: Mon, 19 Oct 2020 07:44:09 +0800 Subject: [PATCH] Retain the option `helm repo add --force-update` when Helm is v3.3.4 or above. (#1546) See: https://github.com/roboll/helmfile/pull/1542#issuecomment-710082201 --- pkg/helmexec/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/helmexec/exec.go b/pkg/helmexec/exec.go index ba82c9d9..6ea7bd0d 100644 --- a/pkg/helmexec/exec.go +++ b/pkg/helmexec/exec.go @@ -121,7 +121,7 @@ func (helm *execer) AddRepo(name, repository, cafile, certfile, keyfile, usernam args = append(args, "repo", "add", name, repository) // See https://github.com/helm/helm/pull/8777 - if cons, err := semver.NewConstraint(">= 3.3.2, < 3.3.4"); err == nil { + if cons, err := semver.NewConstraint(">= 3.3.2"); err == nil { if cons.Check(&helm.version) { args = append(args, "--force-update") }