From 53657e2a8651d6b1065547a81e0cb4751d8e3495 Mon Sep 17 00:00:00 2001 From: Antoine Bertin Date: Wed, 31 Mar 2021 19:08:32 +0200 Subject: [PATCH] Add support for ingressClassName in helm chart Signed-off-by: Antoine Bertin --- chart/templates/ingress.yaml | 3 +++ chart/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml index 5b3a405..13555f8 100644 --- a/chart/templates/ingress.yaml +++ b/chart/templates/ingress.yaml @@ -14,6 +14,9 @@ metadata: {{ $key }}: {{ $value | quote }} {{- end }} spec: + {{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName }} + {{- end }} rules: - host: {{ .Values.ingress.host }} http: diff --git a/chart/values.yaml b/chart/values.yaml index 7518b15..682dd07 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -151,6 +151,9 @@ ingress: ## Set to true to enable ingress record generation enabled: false + ## Add ingressClassName to the Ingress + ## Can replace the kubernetes.io/ingress.class annotation on v1.18+ + ingressClassName: ~ host: xip.io