From f695657d9d33f40ecd60b0a18d614e4a28ae0069 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Fri, 26 Jun 2026 23:39:24 +1000 Subject: [PATCH] refactor: simplify artifactapi routes (#201) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Route /ui → UI service, everything else → API service. Replaces the growing list of per-prefix rules (/api, /v2, /health) with a single catch-all to the API. No more needing to add a route rule every time the API adds a new top-level path. Reviewed-on: https://git.unkin.net/unkin/argocd-apps/pulls/201 Co-authored-by: Ben Vincent Co-committed-by: Ben Vincent --- 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