From d5804fe3b547f183990f334d326ef726b6e87de6 Mon Sep 17 00:00:00 2001 From: Tim H Date: Mon, 7 Aug 2017 10:44:37 +0200 Subject: [PATCH] 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.