From f4d3919a9c60b44e895dc7a214ca4d1a2d2b534a Mon Sep 17 00:00:00 2001 From: MMygind <56871472+MMygind@users.noreply.github.com> Date: Tue, 21 Jan 2025 14:49:13 +0100 Subject: [PATCH] feat: conditional tenantname on ingress --- charts/app/templates/ingress.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/app/templates/ingress.yaml b/charts/app/templates/ingress.yaml index 35a5fcd..e3ad161 100644 --- a/charts/app/templates/ingress.yaml +++ b/charts/app/templates/ingress.yaml @@ -38,14 +38,14 @@ spec: {{- range .tls }} - hosts: {{- range $host:=.hosts }} - - {{ $host }}.{{ $.Values.ingress.tenantName }}.{{ $dnsSuffix }} + - {{ $host }}{{ if $.Values.ingress.tenantName }}.{{ $.Values.ingress.tenantName }}{{ end }}.{{ $dnsSuffix }} {{- end }} secretName: {{ .secretName }} {{- end }} {{- end }} rules: {{- range .hosts }} - - host: {{ .host }}.{{ $.Values.ingress.tenantName }}.{{ $dnsSuffix }} + - host: {{ .host }}{{ if $.Values.ingress.tenantName }}.{{ $.Values.ingress.tenantName }}{{ end }}.{{ $dnsSuffix }} http: paths: {{- range .paths }}