Skip to content

Commit

Permalink
Update chart to support IngressClass
Browse files Browse the repository at this point in the history
Signed-off-by: Sheng-Kai <[email protected]>
  • Loading branch information
wheam2002 authored and alexellis committed Jul 6, 2022
1 parent 1773f37 commit 031713b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chart/openfaas/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions chart/openfaas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 031713b

Please sign in to comment.