From 0bc7bafed46b11b6a498a57e8b25a8964effe37e Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Mon, 2 Aug 2021 14:44:46 -0300 Subject: [PATCH] Fix invalid YAML in ingress definition --- charts/portalmodelo/v0.5.0/templates/ingress.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/portalmodelo/v0.5.0/templates/ingress.yaml b/charts/portalmodelo/v0.5.0/templates/ingress.yaml index ca7cabd..40028bb 100644 --- a/charts/portalmodelo/v0.5.0/templates/ingress.yaml +++ b/charts/portalmodelo/v0.5.0/templates/ingress.yaml @@ -20,7 +20,7 @@ metadata: cert-manager.io/cluster-issuer: "letsencrypt-prod" {{- end }} {{- if contains "nginx" .Values.ingress.class }} - {{- if .Values.ingress.vhostmonster -}} + {{- if .Values.ingress.vhostmonster }} nginx.ingress.kubernetes.io/rewrite-target: "/VirtualHostBase/https/{{ $hostPrefix }}.{{ $hostName }}:443{{ $zopeFolder }}portal/VirtualHostRoot/$1" {{- end }} nginx.ingress.kubernetes.io/from-to-www-redirect: "true" @@ -33,7 +33,7 @@ metadata: {{- else }} # DO NOT USE TLS {{- if contains "nginx" .Values.ingress.class }} - {{- if .Values.ingress.vhostmonster -}} + {{- if .Values.ingress.vhostmonster }} nginx.ingress.kubernetes.io/rewrite-target: "/VirtualHostBase/http/{{ $hostPrefix }}.{{ $hostName }}:80{{ $zopeFolder }}portal/VirtualHostRoot/$1" {{- end }} {{- end }}