From 136aa4e38589df89013b0849a834b1ee9dcee1c6 Mon Sep 17 00:00:00 2001 From: Fabio Date: Thu, 17 Nov 2022 11:36:13 -0300 Subject: [PATCH] Do not create ingress if LDAP is enabled --- charts/emailleg/v1.4.0/templates/correioadm-ingress.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/emailleg/v1.4.0/templates/correioadm-ingress.yaml b/charts/emailleg/v1.4.0/templates/correioadm-ingress.yaml index acbba89..0f0d076 100755 --- a/charts/emailleg/v1.4.0/templates/correioadm-ingress.yaml +++ b/charts/emailleg/v1.4.0/templates/correioadm-ingress.yaml @@ -1,3 +1,4 @@ +{{- if not .Values.mail.ldap.server }} {{- $fullName := include "emailleg.fullname" . -}} {{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} apiVersion: networking.k8s.io/v1 @@ -36,3 +37,4 @@ spec: serviceName: {{ .Release.Name }}-mail servicePort: http {{- end }} +{{- end }} \ No newline at end of file