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

Slightly better logic when .Values.image.tag isn't set

This commit is contained in:
Tim Campbell 2025-03-06 15:08:52 +01:00
parent 770d19dfd8
commit ad4364119e

View File

@ -47,8 +47,10 @@ Common labels
helm.sh/chart: {{ include "mastodon.chart" . }}
{{ include "mastodon.selectorLabels" . }}
{{ include "mastodon.globalLabels" . }}
{{- if .Chart.AppVersion }}
{{- if .Values.image.tag }}
app.kubernetes.io/version: {{ .Values.image.tag | quote }}
{{- else if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}