mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-03 14:37:44 +01:00
Remove unneccessary certificate options for Helm CLI
The --cert-file and --key-file options for Helm CLI are used to identify HTTPS client, i.e. the helm CLI. It's not mandantory and usually not needed. Most of the users don't know how to get these two files. Signed-off-by: Jesse Hu <huh@vmware.com>
This commit is contained in:
parent
b90874b06a
commit
fb13d4e080
@ -573,7 +573,7 @@ Before working, Harbor should be added into the repository list with `helm repo
|
||||
|
||||
With this mode Helm can be made aware of all the charts located in different projects and which are accessible by the currently authenticated user.
|
||||
```
|
||||
helm repo add --ca-file ca.crt --cert-file server.crt --key-file server.key --username=admin --password=Passw0rd myrepo https://xx.xx.xx.xx/chartrepo
|
||||
helm repo add --ca-file ca.crt --username=admin --password=Passw0rd myrepo https://xx.xx.xx.xx/chartrepo
|
||||
```
|
||||
**NOTES:** Providing both ca file and cert files is caused by an issue from helm.
|
||||
|
||||
@ -581,7 +581,7 @@ helm repo add --ca-file ca.crt --cert-file server.crt --key-file server.key --us
|
||||
|
||||
With this mode, helm can only pull charts in the specified project.
|
||||
```
|
||||
helm repo add --ca-file ca.crt --cert-file server.crt --key-file server.key --username=admin --password=Passw0rd myrepo https://xx.xx.xx.xx/chartrepo/myproject
|
||||
helm repo add --ca-file ca.crt --username=admin --password=Passw0rd myrepo https://xx.xx.xx.xx/chartrepo/myproject
|
||||
```
|
||||
|
||||
#### Push charts to the repository server by CLI
|
||||
@ -591,7 +591,7 @@ helm plugin install https://github.com/chartmuseum/helm-push
|
||||
```
|
||||
After a successful installation, run `push` command to upload your charts:
|
||||
```
|
||||
helm push --ca-file=ca.crt --key-file=server.key --cert-file=server.crt --username=admin --password=passw0rd chart_repo/hello-helm-0.1.0.tgz myrepo
|
||||
helm push --ca-file=ca.crt --username=admin --password=passw0rd chart_repo/hello-helm-0.1.0.tgz myrepo
|
||||
```
|
||||
**NOTES:** `push` command does not support pushing a prov file of a signed chart yet.
|
||||
|
||||
@ -609,7 +609,7 @@ helm search hello
|
||||
```
|
||||
Everything is ready, install the chart to your kubernetes:
|
||||
```
|
||||
helm install --ca-file=ca.crt --key-file=server.key --cert-file=server.crt --username=admin --password=Passw0rd --version 0.1.10 repo248/chart_repo/hello-helm
|
||||
helm install --ca-file=ca.crt --username=admin --password=Passw0rd --version 0.1.10 repo248/chart_repo/hello-helm
|
||||
```
|
||||
|
||||
For other more helm commands like how to sign a chart, please refer to the [helm doc](https://docs.helm.sh/helm/#helm).
|
||||
|
Loading…
Reference in New Issue
Block a user