helm-s3
helm-s3 copied to clipboard
Cannot push local chart to s3 repo
Any idea what I'm doing wrong with helm 3?
$ helm version
version.BuildInfo{Version:"v3.4.0", GitCommit:"7090a89efc8a18f3d8178bf47d2462450349a004", GitTreeState:"clean", GoVersion:"go1.14.10"}
$ helm plugin install https://github.com/hypnoglow/helm-s3.git
Downloading and installing helm-s3 v0.10.0 ...
Checksum is valid.
Installed plugin: s3
$ helm repo add test-ofm "s3://my-bucket/helm-charts-repo"
"test-ofm" has been added to your repositories
$ ls -l ./ambassador-2.1.0.tgz
-rw-r--r-- 1 test test 7926 Dec 1 23:51 ./ambassador-2.1.0.tgz
$ helm s3 push ./ambassador-2.1.0.tgz test-ofm
repo with name test-ofm not found, try `helm repo add test-ofm <uri>`
Error: plugin "s3" exited with error
Side note that I removed the following lines from output as they get printed every command:
WARNING: "kubernetes-charts.storage.googleapis.com" is deprecated for "stable" and will be deleted Nov. 13, 2020.
WARNING: You should switch to "https://charts.helm.sh/stable"
With helm 2 I have no problem:
$ helm version --client
Client: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"}
$ helm plugin install https://github.com/hypnoglow/helm-s3.git
Downloading and installing helm-s3 v0.10.0 ...
Checksum is valid.
Installed plugin: s3
$ helm repo add test-ofm "s3://my-bucket/helm-charts-repo"
"test-ofm" has been added to your repositories
$ helm search ambassador
NAME CHART VERSION APP VERSION DESCRIPTION
stable/ambassador 5.3.2 0.86.1 DEPRECATED A Helm chart for Datawire Ambassador
$ helm s3 push ./ambassador-2.1.0.tgz test-ofm
$ helm search ambassador
NAME CHART VERSION APP VERSION DESCRIPTION
test-ofm/ambassador 2.1.0 0.53.1 A Helm chart for Datawire Ambassador
stable/ambassador 5.3.2 0.86.1 DEPRECATED A Helm chart for Datawire Ambassador
$
Doing helm search repo ambassador from the shell running helm 3 shows the version just uploaded to test-ofm (after helm repo update).
Hit the same bug today.
For me adding HELM_S3_MODE=3 solved the issue, in your case e.g.
HELM_S3_MODE=3 helm s3 push ./ambassador-2.1.0.tgz test-ofm