Skip to content

Commit 11b43dd

Browse files
committed
simplify chart name helper
1 parent 474fc3a commit 11b43dd

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

templates/_helpers.tpl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ Expand the name of the chart.
55
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
66
{{- end -}}
77

8-
{{/*
9-
Create chart name and version as used by the chart label.
10-
*/}}
11-
{{- define "stackstorm-ha.chart" -}}
12-
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
13-
{{- end -}}
14-
158
{{/*
169
Common labels
1710
Usage: "{{ include "stackstorm-ha.labels" (list $ "st2servicename") }}"
@@ -28,7 +21,7 @@ tier: tests
2821
tier: backend
2922
{{- end }}
3023
vendor: stackstorm
31-
chart: {{ include "stackstorm-ha.chart" $root }}
24+
chart: {{ $root.Chart.Name }}-{{ $root.Chart.Version }}
3225
heritage: {{ $root.Release.Service }}
3326
{{- end -}}
3427

0 commit comments

Comments
 (0)