From 6183c6a3bbe4640613f1c2d56e64909b5cfdec33 Mon Sep 17 00:00:00 2001 From: Tvion Date: Fri, 22 May 2026 12:07:11 +0500 Subject: [PATCH] fix: Update Powa UI deployment and HTTP route to include path matching rules --- .../templates/powa-ui/powa-gateway-deployment.yaml | 6 +++++- .../patroni-services/templates/powa-ui/powa-http-route.yaml | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/operator/charts/patroni-services/templates/powa-ui/powa-gateway-deployment.yaml b/operator/charts/patroni-services/templates/powa-ui/powa-gateway-deployment.yaml index 8db32f61..dc48f909 100644 --- a/operator/charts/patroni-services/templates/powa-ui/powa-gateway-deployment.yaml +++ b/operator/charts/patroni-services/templates/powa-ui/powa-gateway-deployment.yaml @@ -13,7 +13,11 @@ spec: port: 443 hostnames: [{{ .Values.powaUI.ingress.host | quote }}] rules: - - backendRefs: + - matches: + - path: + type: PathPrefix + value: / + backendRefs: - name: powa-ui port: 8080 {{- end }} diff --git a/operator/charts/patroni-services/templates/powa-ui/powa-http-route.yaml b/operator/charts/patroni-services/templates/powa-ui/powa-http-route.yaml index 7d7ccb8f..6f0dedf7 100644 --- a/operator/charts/patroni-services/templates/powa-ui/powa-http-route.yaml +++ b/operator/charts/patroni-services/templates/powa-ui/powa-http-route.yaml @@ -18,5 +18,9 @@ spec: requestRedirect: scheme: https statusCode: 301 + matches: + - path: + type: PathPrefix + value: / {{- end }} {{- end }} \ No newline at end of file