Skip to content

Commit cc26861

Browse files
Mattes83FxKu
andauthored
[UI] add ingressClassName (zalando#1787)
* feat: add ingressClassName Signed-off-by: Matthias Teich <[email protected]> * Update example manifest Signed-off-by: Matthias Teich <[email protected]> * Update ui/manifests/ingress.yaml Co-authored-by: Felix Kunde <[email protected]>
1 parent d6641a9 commit cc26861

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

charts/postgres-operator-ui/templates/ingress.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ metadata:
2323
{{- toYaml . | nindent 4 }}
2424
{{- end }}
2525
spec:
26+
{{- if .Values.ingress.ingressClassName }}
27+
ingressClassName: {{ .Values.ingress.ingressClassName }}
28+
{{- end }}
2629
{{- if .Values.ingress.tls }}
2730
tls:
2831
{{- range .Values.ingress.tls }}

charts/postgres-operator-ui/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ ingress:
9393
{}
9494
# kubernetes.io/ingress.class: nginx
9595
# kubernetes.io/tls-acme: "true"
96+
ingressClassName: ""
9697
hosts:
9798
- host: ui.example.org
9899
paths: [""]

ui/manifests/ingress.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ metadata:
66
labels:
77
application: "postgres-operator-ui"
88
spec:
9+
# ingressClassName: "ingress-nginx"
910
rules:
1011
- host: "ui.example.org"
1112
http:

0 commit comments

Comments
 (0)