From 481e1014f5c61eb8c62f5f147b8afa922292b3ef Mon Sep 17 00:00:00 2001 From: Jeromy Cannon Date: Wed, 24 Jan 2024 07:35:00 -0600 Subject: [PATCH] Update chart/templates/ingress.yaml Co-authored-by: Steven Sheehy <17552371+steven-sheehy@users.noreply.github.com> Signed-off-by: Jeromy Cannon --- chart/templates/ingress.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }}