Skip to content

Commit 55e451d

Browse files
committed
remove default inress annotation so the ingressClassName is setable Signed-off-by: Richard Lavey <6595659+rlaveycal@users.noreply.github.com>
1 parent 180aae1 commit 55e451d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

chart/openfaas/templates/ingress.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ metadata:
1212
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
1313
release: {{ .Release.Name }}
1414
heritage: {{ .Release.Service }}
15+
{{- if .Values.ingress.annotations }}
1516
annotations:
1617
{{- range $key, $value := .Values.ingress.annotations }}
1718
{{ $key }}: {{ $value | quote }}
1819
{{- end }}
20+
{{- end }}
1921
spec:
2022
{{- if .Values.ingress.ingressClassName }}
2123
ingressClassName: {{ .Values.ingress.ingressClassName }}

chart/openfaas/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,7 @@ ingress:
291291
serviceName: gateway
292292
servicePort: 8080
293293
path: /
294-
annotations:
295-
kubernetes.io/ingress.class: nginx
294+
annotations: {}
296295
tls:
297296
# Secrets must be manually created in the namespace.
298297

0 commit comments

Comments
 (0)