diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index fb5900b..d07e2ad 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -48,7 +48,7 @@ helm.sh/chart: {{ include "mastodon.chart" . }} {{ include "mastodon.selectorLabels" . }} {{ include "mastodon.globalLabels" . }} {{- if .Values.image.tag }} -app.kubernetes.io/version: {{ regexReplaceAll "@[a-zA-Z0-9:]+" .Values.image.tag "" | quote }} +app.kubernetes.io/version: {{ regexReplaceAll "@(\\w+:\\w{0,7})\\w*" .Values.image.tag "@${1}" | quote }} {{- else if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }}