feat: add app.kubernetes.io/name and app.kubernetes.io/instance to default labels
This commit is contained in:
@ -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 }}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user