Skip to content

feat: Add default rules for API, SSE, and frontend HTTPRoutes#522

Merged
germangarces merged 3 commits intomainfrom
feat/default-rules-for-httproutes
Apr 9, 2026
Merged

feat: Add default rules for API, SSE, and frontend HTTPRoutes#522
germangarces merged 3 commits intomainfrom
feat/default-rules-for-httproutes

Conversation

@germangarces
Copy link
Copy Markdown
Contributor

@germangarces germangarces commented Apr 7, 2026

Closes #493

Problem

The Gateway API HTTPRoute templates don't work out of the box — API and SSE have no default routing rules, and the frontend has a path match but no backendRefs to actually forward traffic.

Solution

Add default rules matching the existing Ingress behaviour:

  • API: routes /api/, /health/, /admin/, /static/admin/ to the Django backend
  • SSE: routes / to the Server-Sent Events service (real-time flag updates to SDKs). Catch-all is correct because SSE gets its own dedicated hostname.
  • Frontend: adds the missing backendRefs to the existing / path match

Custom rules via gateway.{api,sse,frontend}.rules still override all defaults.

@germangarces germangarces marked this pull request as ready for review April 7, 2026 13:05
@germangarces germangarces requested a review from khvn26 April 8, 2026 14:21
@germangarces germangarces enabled auto-merge (squash) April 9, 2026 14:31
@germangarces germangarces merged commit 48d3848 into main Apr 9, 2026
2 checks passed
@germangarces germangarces deleted the feat/default-rules-for-httproutes branch April 9, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add default rules for API and SSE HTTPRoutes

2 participants