From 5f659dc15b89d97b72b437659732e6477203442d 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 952aae2ef..276a51e01 100644 --- a/chart/openfaas/values.yaml +++ b/chart/openfaas/values.yaml @@ -233,6 +233,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: