From be37caf6d5ab6629edd543fb93968a55fc0ad4a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Ingebrigtsen=20=C3=98vergaard?= Date: Wed, 14 Sep 2022 12:45:33 +0200 Subject: [PATCH] Fix ingress created by chart when tls is enabled The ingress template created a invalid resource when `ingress.tls.enabled` value was set to `true`, because `.spec.tls.hosts` in the ingress resource was used as a string (the hostname) when should be a array containing the hostname as an item. --- helm/fiaas-deploy-daemon/templates/ingress.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helm/fiaas-deploy-daemon/templates/ingress.yaml b/helm/fiaas-deploy-daemon/templates/ingress.yaml index 9f82443c..fe2383b2 100644 --- a/helm/fiaas-deploy-daemon/templates/ingress.yaml +++ b/helm/fiaas-deploy-daemon/templates/ingress.yaml @@ -18,7 +18,8 @@ metadata: spec: {{- if .Values.ingress.tls.enabled }} tls: - - hosts: {{ .Values.ingress.host | quote }} + - hosts: + - {{ .Values.ingress.host | quote }} secretName: {{ .Values.ingress.tls.secretName }} {{- end }} rules: