diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml index 973c797d4..ca8cbe104 100644 --- a/chart/templates/ingress.yaml +++ b/chart/templates/ingress.yaml @@ -13,7 +13,7 @@ metadata: name: {{ $fullName }} namespace: {{ include "hedera-explorer.namespace" . }} spec: - {{- with .Values.ingress.className }} + {{- with (coalesce .Values.global.ingressClassName .Values.ingress.className) }} ingressClassName: {{ . }} {{- end }} rules: @@ -36,7 +36,7 @@ spec: {{- range . }} - hosts: {{- range .hosts }} - - {{ . | quote }} + - {{ tpl . $ | quote }} {{- end }} secretName: {{ .secretName }} {{- end }} diff --git a/chart/values.yaml b/chart/values.yaml index 03302002d..b23db882a 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -41,6 +41,7 @@ fullnameOverride: "" global: namespaceOverride: "" + ingressClassName: "" # if set, takes precedence over the .Values.ingress.className image: pullPolicy: IfNotPresent