{{/* vim: set filetype=mustache: */}} {{/* Kubernetes standard labels */}} {{- define "common.labels.middleware.minio" -}} {{ include "common.labels.standard.middleware" . }} cmii.app: minio {{- end -}} {{- define "common.labels.matchLabels.minio" -}} {{ include "common.labels.matchLabels.middleware" . }} cmii.app: minio {{- end -}} {{- define "common.labels.middleware.mysql" -}} {{ include "common.labels.standard.middleware" . }} cmii.app: mysql {{- end -}} {{- define "common.labels.matchLabels.mysql" -}} {{ include "common.labels.matchLabels.middleware" . }} cmii.app: mysql {{- end -}} {{- define "common.labels.middleware.redis" -}} {{ include "common.labels.standard.middleware" . }} cmii.app: redis {{- end -}} {{- define "common.labels.matchLabels.redis" -}} {{ include "common.labels.matchLabels.middleware" . }} cmii.app: redis {{- end -}} {{- define "common.labels.standard.middleware" -}} {{ include "common.labels.standard" . }} cmii.type: middleware {{- end -}} {{- define "common.labels.matchLabels.middleware" -}} {{ include "common.labels.matchLabels" . }} cmii.type: middleware {{- end -}} {{- define "common.labels.standard" -}} app.kubernetes.io/name: {{ include "common.names.name" . }} helm.sh/chart: {{ include "common.names.chart" . }} app.kubernetes.io/release: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Chart.Name }} {{- end -}} {{/* Labels to use on deploy.spec.selector.matchLabels and svc.spec.selector */}} {{- define "common.labels.matchLabels" -}} app.kubernetes.io/name: {{ include "common.names.name" . }} app.kubernetes.io/release: {{ .Release.Name }} {{- end -}}