3
0
mirror of https://github.com/mastodon/chart synced 2025-05-17 20:43:21 +00:00

Don't remove, but rather shorten

This commit is contained in:
Tim Campbell 2025-03-26 11:25:47 +01:00
parent 5991d27ffa
commit 99d251afa7

View File

@ -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 }}