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:
parent
770d19dfd8
commit
ad4364119e
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user