Skip to content

Commit

Permalink
Retain the option helm repo add --force-update when Helm is v3.3.4 …
Browse files Browse the repository at this point in the history
…or above. (#1546)

See: #1542 (comment)
  • Loading branch information
wi1dcard authored Oct 18, 2020
1 parent 080080f commit f5d0988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/helmexec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit f5d0988

Please sign in to comment.