{{- define "commonLabels" -}}
app: {{ .Chart.Name | quote }}
release: {{ .Release.Name }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
heritage: {{ .Release.Service }}
{{- if .Values.extraLabels }}
{{ toYaml .Values.extraLabels }}
{{- end }}
{{- end -}}

{{- define "completeLabels" -}}
{{ include "commonLabels" . }}
appVersion: {{.Chart.AppVersion | quote}}
{{- end -}}

{{- define "commonLabels" -}}
app: {{ .Chart.Name | quote }}
release: {{ .Release.Name }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
heritage: {{ .Release.Service }}
{{- if .Values.extraLabels }}
{{ toYaml .Values.extraLabels }}
{{- end }}
{{- end -}}

{{- define "completeLabels" -}}
{{ include "commonLabels" . }}
version: {{.Chart.AppVersion | quote}}
{{- end -}}

Rename label from appversion to version.
Rename label from appversion to version.
