Skip to content

Commit 8437377

Browse files
committed
add chart name template to examples
1 parent 5cfba29 commit 8437377

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

example-charts/custom-template/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in volup
1212
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
1313
culpa qui officia deserunt mollit anim id est laborum.
1414

15+
## Installing the Chart
16+
17+
To install the chart with the release name `my-release`:
18+
19+
```console
20+
$ helm repo add foo-bar http://charts.foo-bar.com
21+
$ helm install my-release foo-bar/custom-template
22+
```
23+
1524
## Requirements
1625

1726
| Repository | Name | Version |

example-charts/custom-template/README.md.gotmpl

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in volup
1111
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
1212
culpa qui officia deserunt mollit anim id est laborum.
1313

14+
## Installing the Chart
15+
16+
To install the chart with the release name `my-release`:
17+
18+
```console
19+
$ helm repo add foo-bar http://charts.foo-bar.com
20+
$ helm install my-release foo-bar/{{ template "chart.name" . }}
21+
```
22+
1423
{{ template "chart.requirementsSection" . }}
1524

1625
{{ template "chart.valuesSection" . }}

example-charts/full-template/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
> **:exclamation: This Helm Chart is deprecated!**
66
7+
## `chart.name`
8+
9+
full-template
10+
711
## `chart.description`
812

913
A chart for showing every README-element

example-charts/full-template/README.md.gotmpl

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
{{ template "chart.deprecationWarning" . }}
1212

13+
## `chart.name`
14+
15+
{{ template "chart.name" . }}
16+
1317
## `chart.description`
1418

1519
{{ template "chart.description" . }}

0 commit comments

Comments
 (0)