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`
pull/2770/head
Tim H 8 years ago committed by GitHub
parent 927c13dd86
commit d5804fe3b5

@ -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: 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 ```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 ## 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. 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.

Loading…
Cancel
Save