Repository navigation
refactor(edge): retire VirtualHost CRD — Gateway API HTTPRoute is the only edge routing API - #292
Merged
Merged
Conversation
…only edge routing API
Proposal 018: make Gateway API the sole north-south edge routing surface and
remove the VirtualHost CRD entirely (BREAKING).
- Generalize the dup-FQDN validating webhook from VirtualHost-specific into a
Gateway/HTTPRoute hostname-conflict check: reject two HTTPRoutes claiming the
same hostname on the SAME Gateway (same parentRef). Still served on the shared
/validate endpoint, dispatched by Kind. Moved the dup-FQDN tests over.
- Remove the VirtualHost CRD, Go types/deepcopy/jsonshim, the agent VirtualHost
reconciler, the controller VirtualHost webhook, the chart template, and the
e2e fixture. Drop the --gateway-api selector flag; Gateway API is unconditional.
- Keep the SecretProvider enum (still used for edge listener TLS) by moving it
into its own secret.proto; delete virtual_host.proto.
- Charts: edge RBAC reads gateways/httproutes only; the GatewayClass always
renders when edge.enabled; the validating webhook rule targets httproutes; the
controller ClusterRole lists httproutes. Flatten edge.gatewayApi.{enabled,
gatewayClassName} to edge.gatewayClassName. Bump aether 0.35.0, crds 0.5.0.
- Replace test/e2e/edge/virtualhost.yaml with httproute.yaml (Gateway+HTTPRoute);
refresh the edge e2e README.
BREAKING CHANGE: the VirtualHost CRD (config.aether.io/v1) is removed. Operators
must migrate every VirtualHost CR to a Gateway API Gateway + HTTPRoute before
upgrading. Per VirtualHost: create one HTTPRoute with spec.hostnames = the
VirtualHost hosts, spec.parentRefs -> a Gateway of the edge GatewayClass
(default "aether"), and one rule per VirtualHost route (match.prefix ->
PathPrefix, match.exact -> Exact; backend.service/port -> backendRef.name/port).
Move spec.tls.secretName to the Gateway listener's tls.certificateRefs. Install
the Gateway API CRDs (standard channel) out-of-band; aether no longer ships an
edge routing CRD.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S
This was referenced Jun 24, 2026
bpalermo
added a commit
that referenced
this pull request
Jul 2, 2026
…ped (#460) (#463) The 'in progress / not yet shipped' list was fully stale: the TCP-over-mTLS floor (#295/#304), Phase 3b L4 routes (#296), VirtualHost retirement (#292), MCS phase 1, and conformance (both profiles hard-gated) have all landed. Documents the tcp protocol-declaration chain (endpoint.aether.io/protocol -> PROTOCOL_TCP -> aether.io/app-protocol -> /32 floor chain) and the destination-IP-beats-ALPN filter-chain-match gotcha. Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S Co-authored-by: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Proposal 018: make Gateway API the sole north-south edge routing surface and remove the VirtualHost CRD entirely. Both APIs previously coexisted (
--gateway-api/edge.gatewayApi.enabled); this drops the selector and the legacy CRD.What changed
controller/internal/gatewayapi): reject two HTTPRoutes claiming the same hostname on the same Gateway (sharedparentRef); same FQDN on different Gateways is allowed, and*.suffixvs a specific host is not a conflict (Envoy resolves most-specific-first). Still served on the shared/validateendpoint, dispatched by Kind. The dup-FQDN test cases moved over.charts/crds/templates/virtualhost.yaml), Go types/deepcopy/jsonshim (common/apis/config/v1/virtualhost_*.go), the agent VirtualHost reconciler (agent/internal/edge/reconciler.go), the controller VirtualHost webhook (controller/internal/virtualhost/), and the--gateway-api/edge.gatewayApi.enabledselector. Gateway API is now unconditional in the edge.SecretProvider(still used for edge listener TLS resolution) by moving it into its ownapi/aether/config/v1/secret.proto; deletedvirtual_host.proto.gateways/httproutesonly; the GatewayClass renders wheneveredge.enabled; the validating webhook rule + controller ClusterRole targethttproutes; flattenededge.gatewayApi.{enabled,gatewayClassName}→edge.gatewayClassName. Bumpedcharts/aetherto0.35.0andcharts/crdsto0.5.0.test/e2e/edge/virtualhost.yamlwithhttproute.yaml(a Gateway + HTTPRoute mirroring the old fixture:svc-5:3001on/grpc,svc-2exact/healthz,svc-1catch-all/); refreshed the edge e2e README.Feature parity (HTTPRoute vs VirtualHost)
The Gateway API path already covered everything VirtualHost did for the edge — per-FQDN ordered path routes to different backend services (rules/matches preserve order), wildcard-TLS certs (
certForHostsmatches*.suffixlisteners), and multi-port backends. The only gap was duplicate-FQDN conflict detection, which lived solely in the VirtualHost webhook; this PR closes it on the HTTPRoute side (the generalized hostname-conflict webhook). No regression.The VirtualHost CRD (
config.aether.io/v1) is removed. Migrate every VirtualHost CR to a Gateway APIGateway+HTTPRoutebefore upgrading:For each VirtualHost:
Gatewayof the edgeGatewayClass(defaultaether) exists in the watched namespace.HTTPRoutewith:spec.hostnames= the VirtualHostspec.hostsspec.parentRefs→ that Gatewaymatch.prefix→path.type: PathPrefix,match.exact→path.type: Exact;backend.service/backend.port→backendRef.name/backendRef.portspec.tls.secretNameto the Gateway listener'stls.certificateRefs(akubernetes.io/tlsSecret).Install the Gateway API CRDs (standard channel) out-of-band — aether no longer ships an edge routing CRD. See
test/e2e/edge/httproute.yamlfor a complete example.Validation
bazel run //:gazelle,bazel build //...,bazel test //...(56/56 pass),bazel run //:format, and--config=lintall clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S