diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml index 72988f188..ca8cbe104 100644 --- a/chart/templates/ingress.yaml +++ b/chart/templates/ingress.yaml @@ -13,8 +13,8 @@ metadata: name: {{ $fullName }} namespace: {{ include "hedera-explorer.namespace" . }} spec: - {{- if or $.Values.global.ingressClassName .Values.ingress.className }} - ingressClassName: {{ $.Values.global.ingressClassName | default .Values.ingress.className }} + {{- with (coalesce .Values.global.ingressClassName .Values.ingress.className) }} + ingressClassName: {{ . }} {{- end }} rules: {{- range .Values.ingress.hosts }}