From 031713b5d970187a755c78f9858ba2e2a0994392 Mon Sep 17 00:00:00 2001 From: Sheng-Kai Date: Mon, 21 Mar 2022 05:22:21 +0000 Subject: [PATCH] Update chart to support IngressClass Signed-off-by: Sheng-Kai --- chart/openfaas/templates/ingress.yaml | 3 +++ chart/openfaas/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/chart/openfaas/templates/ingress.yaml b/chart/openfaas/templates/ingress.yaml index aeb841c4f..645c2f8f3 100644 --- a/chart/openfaas/templates/ingress.yaml +++ b/chart/openfaas/templates/ingress.yaml @@ -17,6 +17,9 @@ metadata: {{ $key }}: {{ $value | quote }} {{- end }} spec: + {{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName }} + {{- end }} rules: {{- range $host := .Values.ingress.hosts }} - host: {{ $host.host }} diff --git a/chart/openfaas/values.yaml b/chart/openfaas/values.yaml index c83094df3..484809faf 100644 --- a/chart/openfaas/values.yaml +++ b/chart/openfaas/values.yaml @@ -257,6 +257,9 @@ ingress: tls: # Secrets must be manually created in the namespace. + ## You can specify the ingress controller by using the ingressClassName + #ingressClassName: nginx + # ingressOperator (optional) – component to have specific FQDN and TLS for Functions # https://github.com/openfaas-incubator/ingress-operator ingressOperator: