diff --git a/charts/pega/templates/pega-tier-ingress.yaml b/charts/pega/templates/pega-tier-ingress.yaml index 919b0ef8b..1dc13b8a9 100644 --- a/charts/pega/templates/pega-tier-ingress.yaml +++ b/charts/pega/templates/pega-tier-ingress.yaml @@ -1,7 +1,8 @@ {{ $depName := printf "%s" (include "deploymentName" $) }} {{- range $index, $dep := .Values.global.tier }} -{{ if and (eq (include "performDeployment" $ ) "true") ($dep.ingress) (eq $dep.ingress.enabled true) }} +{{ if and (eq (include "performDeployment" $ ) "true") ($dep.ingress) }} +{{- if (eq $dep.ingress.enabled true) }} {{- if eq $.Values.global.provider "openshift" -}} {{ template "pega.openshift.ingress" dict "root" $ "node" $dep "name" (printf "%s-%s" $depName $dep.name) }} {{- else if and (eq $.Values.global.provider "eks") -}} @@ -14,4 +15,5 @@ {{ template "pega.k8s.ingress" dict "root" $ "node" $dep "name" (printf "%s-%s" $depName $dep.name) }} {{- end -}} {{- end -}} +{{- end -}} {{- end -}} \ No newline at end of file