prefer .Values.image.tag over .Chart.AppVersion for "app.kubernetes.io/version" label (#21965)

Signed-off-by: Andrii Melnyk <8135246+a-melnyk@users.noreply.github.com>
This commit is contained in:
Andrii Melnyk
2020-04-16 17:07:07 -07:00
committed by GitHub
parent efd0f2cfa4
commit 42c979f00f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: grafana
version: 5.0.12
version: 5.0.13
appVersion: 6.7.1
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
+2 -2
View File
@@ -67,8 +67,8 @@ Common labels
{{- define "grafana.labels" -}}
helm.sh/chart: {{ include "grafana.chart" . }}
{{ include "grafana.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- if or .Chart.AppVersion .Values.image.tag }}
app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}