Skip to content

Commit

Permalink
Add "hello-world.chart" function again
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreese committed Mar 3, 2021
1 parent 9448cfe commit 4888ba8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/hello-world/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ If release name contains chart name it will be used as a full name.
{{- end }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "hello-world.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
Expand Down

0 comments on commit 4888ba8

Please sign in to comment.