From 26ed2f2864a65b54936b51d53ad90c34abd97764 Mon Sep 17 00:00:00 2001 From: filiprafaj Date: Thu, 25 Jul 2024 18:35:10 +0200 Subject: [PATCH] fix ingresses tls (#57) --- charts/defguard/templates/ingress-grpc.yaml | 4 +--- charts/defguard/templates/ingress-web.yaml | 4 +--- charts/defguard/values.yaml | 4 ++-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/charts/defguard/templates/ingress-grpc.yaml b/charts/defguard/templates/ingress-grpc.yaml index 464260c..d6b77b8 100644 --- a/charts/defguard/templates/ingress-grpc.yaml +++ b/charts/defguard/templates/ingress-grpc.yaml @@ -27,11 +27,9 @@ spec: {{- end }} {{- if .Values.ingress.grpc.tls }} tls: - {{- range .Values.ingress.grpc.tls }} - hosts: - {{ .Values.ingress.grpc.host | quote }} - secretName: {{ .secretName }} - {{- end }} + secretName: {{ printf "%s-grpc-tls" .Values.ingress.grpc.host }} {{- end }} rules: - host: {{ .Values.ingress.grpc.host | quote }} diff --git a/charts/defguard/templates/ingress-web.yaml b/charts/defguard/templates/ingress-web.yaml index 82daced..53bcc29 100644 --- a/charts/defguard/templates/ingress-web.yaml +++ b/charts/defguard/templates/ingress-web.yaml @@ -27,11 +27,9 @@ spec: {{- end }} {{- if .Values.ingress.web.tls }} tls: - {{- range .Values.ingress.web.tls }} - hosts: - {{ .Values.ingress.web.host | quote }} - secretName: {{ .secretName }} - {{- end }} + secretName: {{ printf "%s-web-tls" .Values.ingress.web.host }} {{- end }} rules: - host: {{ .Values.ingress.web.host | quote }} diff --git a/charts/defguard/values.yaml b/charts/defguard/values.yaml index b04dea8..408019d 100644 --- a/charts/defguard/values.yaml +++ b/charts/defguard/values.yaml @@ -18,13 +18,13 @@ ingress: className: "" enabled: true host: defguard-grpc.local - tls: [] + tls: false web: annotations: {} className: "" enabled: true host: defguard.local - tls: [] + tls: false existingJwtSecret: "" ldap: admin_group: ""