From 927c13dd8663af839a9e989c9b6033371a76c74f Mon Sep 17 00:00:00 2001 From: Tim H Date: Mon, 7 Aug 2017 10:41:41 +0200 Subject: [PATCH 1/2] Fix helm repo list example The flags to the command must be provided before the directory: `helm repo index [flags] [DIR]` or an error is given: `Error: This command needs 1 argument: path to a directory` --- docs/chart_repository.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/chart_repository.md b/docs/chart_repository.md index 1379573fc..095bebfcd 100644 --- a/docs/chart_repository.md +++ b/docs/chart_repository.md @@ -227,7 +227,7 @@ packaged chart to that directory. $ helm package docs/examples/alpine/ $ mkdir fantastic-charts $ mv alpine-0.1.0.tgz fantastic-charts/ -$ helm repo index fantastic-charts --url https://fantastic-charts.storage.googleapis.com +$ helm repo index --url https://fantastic-charts.storage.googleapis.com fantastic-charts ``` The last command takes the path of the local directory that you just created and From d5804fe3b547f183990f334d326ef726b6e87de6 Mon Sep 17 00:00:00 2001 From: Tim H Date: Mon, 7 Aug 2017 10:44:37 +0200 Subject: [PATCH 2/2] Fix helm repo index command The flags to the command must be provided before the directory: `helm repo index [flags] [DIR]` or an error is given: `Error: This command needs 1 argument: path to a directory` --- docs/chart_repository_sync_example.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/chart_repository_sync_example.md b/docs/chart_repository_sync_example.md index 2fff70de9..fc3f52693 100644 --- a/docs/chart_repository_sync_example.md +++ b/docs/chart_repository_sync_example.md @@ -19,9 +19,9 @@ $ mv alpine-0.1.0.tgz fantastic-charts/ Use helm to generate an updated index.yaml file by passing in the directory path and the url of the remote repository to the `helm repo index` command like this: ```console -$ helm repo index fantastic-charts/ --url https://fantastic-charts.storage.googleapis.com +$ helm repo index --url https://fantastic-charts.storage.googleapis.com fantastic-charts ``` -This will generate an updated index.yaml file and place in the `fantastic-charts/` directory. +This will generate an updated index.yaml file and place in the `fantastic-charts` directory. ## Sync your local and remote chart repositories Upload the contents of the directory to your GCS bucket by running `scripts/sync-repo.sh` and pass in the local directory name and the GCS bucket name.