Update Common Lables template in starter chart

Have update the Common Labels template in the starter chart so that the
value for the `app.kubernetes.io/version` is set to the same value as
the image tag used in the deployment.

Signed-off-by: Thomas O'Donnell <andy.tom@gmail.com>
pull/8562/head
Thomas O'Donnell 4 years ago
parent 579c01fad0
commit 4b1fa60d58

@ -424,9 +424,7 @@ Common labels
{{- define "<CHARTNAME>.labels" -}} {{- define "<CHARTNAME>.labels" -}}
helm.sh/chart: {{ include "<CHARTNAME>.chart" . }} helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
{{ include "<CHARTNAME>.selectorLabels" . }} {{ include "<CHARTNAME>.selectorLabels" . }}
{{- if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | quote }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }} {{- end }}

Loading…
Cancel
Save