|
|
@ -33,9 +33,15 @@ Create chart name and version as used by the chart label. |
|
|
|
{{/* |
|
|
|
Common labels |
|
|
|
*/}} |
|
|
|
{{- define "mailproxy.common.selectorLabels" -}} |
|
|
|
app.kubernetes.io/name: {{ include "mailproxy.name" . }} |
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }} |
|
|
|
{{- end }} |
|
|
|
|
|
|
|
|
|
|
|
{{- define "mailproxy.labels" -}} |
|
|
|
helm.sh/chart: {{ include "mailproxy.chart" . }} |
|
|
|
{{ include "mailproxy.selectorLabels" . }} |
|
|
|
{{ include "mailproxy.common.selectorLabels" . }} |
|
|
|
{{- if .Chart.AppVersion }} |
|
|
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} |
|
|
|
{{- end }} |
|
|
@ -45,7 +51,12 @@ app.kubernetes.io/managed-by: {{ .Release.Service }} |
|
|
|
{{/* |
|
|
|
Selector labels |
|
|
|
*/}} |
|
|
|
{{- define "mailproxy.selectorLabels" -}} |
|
|
|
app.kubernetes.io/name: {{ include "mailproxy.name" . }} |
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }} |
|
|
|
{{- define "mailproxy.nginx.selectorLabels" -}} |
|
|
|
{{ include "mailproxy.common.selectorLabels" . }} |
|
|
|
app.kubernetes.io/component: nginx |
|
|
|
{{- end }} |
|
|
|
|
|
|
|
{{- define "mailproxy.mailauth.selectorLabels" -}} |
|
|
|
{{ include "mailproxy.common.selectorLabels" . }} |
|
|
|
app.kubernetes.io/component: mailauth |
|
|
|
{{- end }} |