From cc2686151976e11a01bd4a2dfcfdd89537b389a1 Mon Sep 17 00:00:00 2001 From: Matthias Teich Date: Fri, 25 Mar 2022 14:56:06 +0100 Subject: [PATCH] [UI] add ingressClassName (#1787) * feat: add ingressClassName Signed-off-by: Matthias Teich * Update example manifest Signed-off-by: Matthias Teich * Update ui/manifests/ingress.yaml Co-authored-by: Felix Kunde --- charts/postgres-operator-ui/templates/ingress.yaml | 3 +++ charts/postgres-operator-ui/values.yaml | 1 + ui/manifests/ingress.yaml | 1 + 3 files changed, 5 insertions(+) diff --git a/charts/postgres-operator-ui/templates/ingress.yaml b/charts/postgres-operator-ui/templates/ingress.yaml index 21e7dbea2..37b47a6c5 100644 --- a/charts/postgres-operator-ui/templates/ingress.yaml +++ b/charts/postgres-operator-ui/templates/ingress.yaml @@ -23,6 +23,9 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: +{{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName }} +{{- end }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} diff --git a/charts/postgres-operator-ui/values.yaml b/charts/postgres-operator-ui/values.yaml index ff1555b13..c8353667e 100644 --- a/charts/postgres-operator-ui/values.yaml +++ b/charts/postgres-operator-ui/values.yaml @@ -93,6 +93,7 @@ ingress: {} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" + ingressClassName: "" hosts: - host: ui.example.org paths: [""] diff --git a/ui/manifests/ingress.yaml b/ui/manifests/ingress.yaml index a5e6f0fab..53be1f45b 100644 --- a/ui/manifests/ingress.yaml +++ b/ui/manifests/ingress.yaml @@ -6,6 +6,7 @@ metadata: labels: application: "postgres-operator-ui" spec: + # ingressClassName: "ingress-nginx" rules: - host: "ui.example.org" http: