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
2 changed files with 7 additions and 0 deletions

View File

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

View File

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