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:
parent
080080f57f
commit
f5d098876a
|
|
@ -121,7 +121,7 @@ func (helm *execer) AddRepo(name, repository, cafile, certfile, keyfile, usernam
|
||||||
args = append(args, "repo", "add", name, repository)
|
args = append(args, "repo", "add", name, repository)
|
||||||
|
|
||||||
// See https://github.com/helm/helm/pull/8777
|
// 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) {
|
if cons.Check(&helm.version) {
|
||||||
args = append(args, "--force-update")
|
args = append(args, "--force-update")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue