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