2021-02-05 20:17:06 +00:00
|
|
|
{{/*
|
|
|
|
Common labels shared across objects.
|
|
|
|
*/}}
|
|
|
|
{{- define "common.labels" -}}
|
|
|
|
helm.sh/chart: {{ include "common.names.chart" . }}
|
|
|
|
{{ include "common.labels.selectorLabels" . }}
|
|
|
|
{{- if .Chart.AppVersion }}
|
|
|
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
|
|
{{- end }}
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{/*
|
|
|
|
Selector labels shared across objects.
|
|
|
|
*/}}
|
|
|
|
{{- define "common.labels.selectorLabels" -}}
|
|
|
|
app.kubernetes.io/name: {{ include "common.names.name" . }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
{{- end }}
|
2021-02-28 15:53:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Bitnami Compatibility links
|
|
|
|
|
|
|
|
{{/* vim: set filetype=mustache: */}}
|
|
|
|
{{/*
|
|
|
|
Kubernetes standard labels
|
|
|
|
*/}}
|
|
|
|
{{- define "common.labels.standard" -}}
|
|
|
|
{{ include "common.labels" . }}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{/*
|
|
|
|
Labels to use on deploy.spec.selector.matchLabels and svc.spec.selector
|
|
|
|
*/}}
|
|
|
|
{{- define "common.labels.matchLabels" -}}
|
|
|
|
{{ include "common.labels.selectorLabels" . }}
|
|
|
|
{{- end -}}
|