From 97345a86287c27c08ff899bf55e89dca822ac28f Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Fri, 26 Jun 2026 23:37:21 +1000 Subject: [PATCH] =?UTF-8?q?refactor:=20simplify=20artifactapi=20routes=20?= =?UTF-8?q?=E2=80=94=20UI=20on=20/ui,=20API=20catches=20all?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Route /ui to the UI service, everything else (/, /api, /v2, /health, etc.) to the API service. Eliminates the need to add a new route rule for every API path prefix. --- apps/base/artifactapi/httproute.yaml | 40 +++++++--------------------- 1 file changed, 10 insertions(+), 30 deletions(-) diff --git a/apps/base/artifactapi/httproute.yaml b/apps/base/artifactapi/httproute.yaml index 1824a55..a81ebe3 100644 --- a/apps/base/artifactapi/httproute.yaml +++ b/apps/base/artifactapi/httproute.yaml @@ -37,42 +37,22 @@ spec: name: artifactapi sectionName: https rules: - - backendRefs: - - group: "" - kind: Service - name: artifactapi - port: 80 - weight: 1 - matches: - - path: - type: PathPrefix - value: /api - - backendRefs: - - group: "" - kind: Service - name: artifactapi - port: 80 - weight: 1 - matches: - - path: - type: PathPrefix - value: /v2 - - backendRefs: - - group: "" - kind: Service - name: artifactapi - port: 80 - weight: 1 - matches: - - path: - type: PathPrefix - value: /health - backendRefs: - group: "" kind: Service name: ui port: 80 weight: 1 + matches: + - path: + type: PathPrefix + value: /ui + - backendRefs: + - group: "" + kind: Service + name: artifactapi + port: 80 + weight: 1 matches: - path: type: PathPrefix