Skip to content

Commit

Permalink
Document Helm's chart tool multi-version feature (#782)
Browse files Browse the repository at this point in the history
Also, the `--prune` option for vendoring
Closes #778
  • Loading branch information
julienduchesne authored Oct 24, 2022
1 parent f23945c commit d379f72
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/docs/helm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,40 @@ repositories:
+ url: https://grafana.github.io/helm-charts
```

**Installing multiple versions of the same chart:**
If you wish to install multiple versions of the same chart, you can write them to a specific directory.
You can do so with a `:<directory>` suffix in the `add` command, or by modifying the chartfile manually.

```bash
tk tool charts add stable/[email protected]:1.6.7
tk tool charts add stable/[email protected]:1.6.8
```

The resulting chartfile will look like this:

```yaml
version: 1
directory: charts
repositories:
- name: stable
url: https://charts.helm.sh/stable
requires:
- chart: stable/mysql
directory: 1.6.7
version: 1.6.7
- chart: stable/mysql
directory: 1.6.8
version: 1.6.8
```
**Install charts from chartfile:** To install charts from an existing chartfile, use the following:
```bash
$ tk tool charts vendor
```

Optionally, you can also pass the `--prune` flag to remove vendored charts that are no longer in the chartfile.

## Troubleshooting

### Helm executable missing
Expand Down

0 comments on commit d379f72

Please sign in to comment.