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
This commit is contained in:
Wi1dcard 2020-10-19 07:44:09 +08:00 committed by GitHub
parent 080080f57f
commit f5d098876a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}