Skip to content

Commit

Permalink
add chart name template to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusfm committed Jun 17, 2020
1 parent 5cfba29 commit 8437377
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
9 changes: 9 additions & 0 deletions example-charts/custom-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in volup
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

## Installing the Chart

To install the chart with the release name `my-release`:

```console
$ helm repo add foo-bar http://charts.foo-bar.com
$ helm install my-release foo-bar/custom-template
```

## Requirements

| Repository | Name | Version |
Expand Down
9 changes: 9 additions & 0 deletions example-charts/custom-template/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in volup
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

## Installing the Chart

To install the chart with the release name `my-release`:

```console
$ helm repo add foo-bar http://charts.foo-bar.com
$ helm install my-release foo-bar/{{ template "chart.name" . }}
```

{{ template "chart.requirementsSection" . }}

{{ template "chart.valuesSection" . }}
4 changes: 4 additions & 0 deletions example-charts/full-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

> **:exclamation: This Helm Chart is deprecated!**
## `chart.name`

full-template

## `chart.description`

A chart for showing every README-element
Expand Down
4 changes: 4 additions & 0 deletions example-charts/full-template/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

{{ template "chart.deprecationWarning" . }}

## `chart.name`

{{ template "chart.name" . }}

## `chart.description`

{{ template "chart.description" . }}
Expand Down

0 comments on commit 8437377

Please sign in to comment.