From 5d6da934633614adf1e39901a1aaa096f54791f6 Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Fri, 18 Dec 2020 11:35:17 +0100
Subject: [PATCH] added possibility to add custom tls configuration

---
 chart/templates/ingress.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml
index b315cdbbd..044c6fad4 100644
--- a/chart/templates/ingress.yaml
+++ b/chart/templates/ingress.yaml
@@ -31,6 +31,9 @@ metadata:
 {{- end }}
 spec:
 {{- if .Values.ingress.tls.enabled }}
+{{- if .Values.ingress.tls.custom }}
+{{ toYaml .Values.ingress.tls.custom | indent 2 }}
+{{- else }}
   tls:
   - hosts:
 {{- if .Values.service.commonName }}
@@ -43,6 +46,7 @@ spec:
 {{- end -}}
 {{- end }}
     secretName: {{ .Values.ingress.tls.secretName | default (printf "%s-tls" (include "fullname" .)) }}
+{{- end }}
 {{- end }}
   rules:
   - host: {{ template "hostname" .Values.service.url }}
-- 
GitLab