Add ingressClassName to ingress template (#858)

This commit is contained in:
Walter Reiner 2022-03-31 23:06:44 +02:00 committed by GitHub
parent eb6d69e1fd
commit c310363c99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -12,6 +12,9 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.ingress.ingressClassName }}
ingressClassName: {{ . }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}

View file

@ -64,6 +64,10 @@ ingress:
annotations:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# -- Defines which ingress controller will implement the resource
ingressClassName: ""
hosts:
- host: chart-example.local
paths: