refactor: simplify artifactapi routes (#201)

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: #201
Co-authored-by: Ben Vincent <ben@unkin.net>
Co-committed-by: Ben Vincent <ben@unkin.net>
This commit was merged in pull request #201.
This commit is contained in:
2026-06-26 23:39:24 +10:00
committed by BenVincent
parent 5dee768170
commit f695657d9d
+10 -30
View File
@@ -37,42 +37,22 @@ spec:
name: artifactapi name: artifactapi
sectionName: https sectionName: https
rules: 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: - backendRefs:
- group: "" - group: ""
kind: Service kind: Service
name: ui name: ui
port: 80 port: 80
weight: 1 weight: 1
matches:
- path:
type: PathPrefix
value: /ui
- backendRefs:
- group: ""
kind: Service
name: artifactapi
port: 80
weight: 1
matches: matches:
- path: - path:
type: PathPrefix type: PathPrefix