From a7d71768e94c3c5aad6de9eab297c08399a1cfa5 Mon Sep 17 00:00:00 2001 From: rigazilla Date: Fri, 16 Feb 2024 17:38:24 +0100 Subject: [PATCH] Proper setup for route and ingress. Fixes #107 --- templates/route.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/route.yaml b/templates/route.yaml index 02f5c55..a262d48 100644 --- a/templates/route.yaml +++ b/templates/route.yaml @@ -15,6 +15,10 @@ metadata: {{- if .Values.deploy.expose.annotations }} {{- end }} spec: + {{- if and .Values.deploy.ssl (ne .Values.deploy.ssl.endpointSecretName "")}} + tls: + termination: passthrough + {{- end }} {{- if .Values.deploy.expose.host }} host: {{ .Values.deploy.expose.host | quote }} } {{- end }} @@ -53,5 +57,12 @@ spec: host: {{ .Values.deploy.expose.host | quote }} {{- else }} {{- end }} + {{- if and .Values.deploy.ssl (ne .Values.deploy.ssl.endpointSecretName "")}} + tls: + - hosts: + {{- if .Values.deploy.expose.host }} + - {{ .Values.deploy.expose.host | quote }} + {{- end }} + {{- end }} {{- end }} {{- end }}