feat: add app.kubernetes.io/name and app.kubernetes.io/instance to default labels

This commit is contained in:
2023-03-02 23:20:23 +03:00
parent 19440d56a6
commit bcf9648dae

View File

@ -4,11 +4,13 @@
Common labels Common labels
*/}} */}}
{{- define "common.labels" -}} {{- define "common.labels" -}}
app.kubernetes.io/name: {{ include "common.name" . }}
helm.sh/chart: {{ include "common.chart" . }} helm.sh/chart: {{ include "common.chart" . }}
{{ include "common.selectorLabels" . }} {{ include "common.selectorLabels" . }}
{{- with .Chart.AppVersion }} {{- with .Chart.AppVersion }}
app.kubernetes.io/version: {{ . | quote }} app.kubernetes.io/version: {{ . | quote }}
{{- end }} {{- end }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }} {{- end }}