-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Description
Description
The command helm repo add <name> <url> fails as it is no longer idempotent. This worked fine in version v3.3.1 and earlier. It now fails in v3.3.2 and v3.3.3. This is a breaking change that has broken automation relying on helm and tools helmfile.
Steps to Reproduce
helm repo add jaegertracing https://jaegertracing.github.io/helm-charts
helm repo add jaegertracing https://jaegertracing.github.io/helm-chartsExpected Results
"jaegertracing" has been added to your repositories
I expected that the command would be idempotent and would not fail. As the repository was already added, it would not need to be added again, and thus should to exist with an error.
Actual Results
Despite the repository already in the desired state, helm exits with an error, even though there is no error. helm will exit with 1 indicated an error. This destroys any automation scripts and tools like helmfile to function correctly.
Error: repository name (jaegertracing) already exists, please specify a different name
Output of helm version:
version.BuildInfo{Version:"v3.3.3", GitCommit:"55e3ca022e40fe200fbc855938995f40b2a68ce0", GitTreeState:"dirty", GoVersion:"go1.15.2"}
Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"clean", BuildDate:"2020-07-15T23:30:39Z", GoVersion:"go1.14.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"17+", GitVersion:"v1.17.9-eks-4c6976", GitCommit:"4c6976793196d70bc5cd29d56ce5440c9473648e", GitTreeState:"clean", BuildDate:"2020-07-17T18:46:04Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Cloud Provider/Platform (AKS, GKE, Minikube etc.):
- EKS (K8S
v1.17.9-eks-4c6976)