Skip to content

agentgateway emitter: add service-upstream backend mapping#94

Merged
danehans merged 1 commit intomainfrom
issue_59_13
Mar 17, 2026
Merged

agentgateway emitter: add service-upstream backend mapping#94
danehans merged 1 commit intomainfrom
issue_59_13

Conversation

@danehans
Copy link
Copy Markdown
Collaborator

@danehans danehans commented Mar 6, 2026

What type of PR is this?
/kind feature
/kind test
/kind documentation

What this PR does / why we need it:
Adds Agentgateway emitter support for ingress-nginx service-upstream.

When nginx.ingress.kubernetes.io/service-upstream: "true" is set, the generated agentgateway output now:

  • emits one AgentgatewayBackend per covered Service backend with spec.static.host and spec.static.port
  • rewrites covered HTTPRoute backendRefs to point to that AgentgatewayBackend

The change keeps existing Service-targeted backend protocol policy projection intact (e.g. backend-protocol: GRPC still maps to AgentgatewayPolicy.spec.backend.http.version: HTTP2).

It also adds integration test coverage and updates documentation for provider and emitter mappings.

Which issue(s) this PR fixes:
Refs #59

Does this PR introduce a user-facing change?:

Agentgateway emitter now supports `nginx.ingress.kubernetes.io/service-upstream` by emitting `AgentgatewayBackend` resources and rewriting matching HTTPRoute backendRefs to target those backends.

Project ingress-nginx service-upstream annotations into AgentgatewayBackend\nresources and rewrite covered HTTPRoute backendRefs to target those\nbackends. This keeps service-scoped backend protocol policy behavior\nintact while enabling static upstream routing semantics for\nagentgateway output.\n\nAdd an agentgateway integration fixture and golden output for\nservice_upstream, and update emitter/provider documentation to describe\nthe new mapping.

Signed-off-by: Daneyon Hansen <daneyon.hansen@solo.io>
@danehans danehans merged commit 6295976 into main Mar 17, 2026
3 checks passed
@danehans danehans deleted the issue_59_13 branch March 17, 2026 21:41
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.

1 participant