You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,14 @@ Pushing mychart-0.3.2.tgz to chartmuseum...
67
67
Done.
68
68
```
69
69
70
+
If the `--force`/`-f` option is not set and the chart already exists you will get an error:
71
+
```
72
+
$ helm push mychart/ chartmuseum
73
+
Pushing mychart-0.1.0.tgz to chartmuseum...
74
+
Error: 409: mychart-0.1.0.tgz already exists
75
+
```
76
+
For some environnements, like in CI/CD pipelines, this error should not stop the whole pipeline and can be skipped using the `--ignore-already-exists` option.
77
+
70
78
### Pushing directly to URL
71
79
If the second argument provided resembles a URL, you are not required to add the repo prior to push:
f.StringVar(&p.keyring, "keyring", defaultKeyring(), "location of a public keyring")
122
123
f.BoolVarP(&p.insecureSkipVerify, "insecure", "", false, "Connect to server with an insecure way by skipping certificate verification [$HELM_REPO_INSECURE]")
123
124
f.BoolVarP(&p.forceUpload, "force", "f", false, "Force upload even if chart version exists")
125
+
f.BoolVarP(&p.ignoreAlreadyExistsError, "ignore-already-exists", "", false, "Skip the already exisits error if chart version exists")
124
126
f.BoolVarP(&p.dependencyUpdate, "dependency-update", "d", false, `update dependencies from "requirements.yaml" to dir "charts/" before packaging`)
125
127
f.BoolVarP(&p.checkHelmVersion, "check-helm-version", "", false, `outputs either "2" or "3" indicating the current Helm major version`)
0 commit comments