From fb13d4e08088acfa18238f88e4fc982d6ef0b347 Mon Sep 17 00:00:00 2001 From: Jesse Hu Date: Tue, 30 Jul 2019 11:01:29 +0800 Subject: [PATCH] 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 --- docs/user_guide.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/user_guide.md b/docs/user_guide.md index a3d3cb889..840e81ce2 100644 --- a/docs/user_guide.md +++ b/docs/user_guide.md @@ -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).