Skip to content

feat(032): upgrade Gateway API to v1.6.1 (TCP/UDP at v1, InvalidParameters) - #532

Merged
bpalermo merged 9 commits into
mainfrom
feat/032-gateway-api-1.6
Jul 18, 2026
Merged

bpalermo merged 9 commits into
mainfrom
feat/032-gateway-api-1.6

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Implements proposal 032 (docs/proposals/032_gateway-api-1.6.md).

  • M1: sigs.k8s.io/gateway-api → v1.6.1 everywhere it's version-coupled: Go dep, committed conformance runner (restructured for the 1.6 ConfigurableOptions embed; profiles/features are slices now), GATEWAY_API_VERSION CRD installs in conformance.yaml. Transitive go-openapi/swag module split handled.
  • M2: TCPRoute/UDPRoute watched at v1 in l4route + edge (graduated in 1.6). Per directive, no v1alpha2 fallback — a cluster serving only the deprecated version gets the type CRD-disabled with an upgrade warning. Stale v1alpha2 scheme installs removed.
  • M3: Gateway infrastructure.parametersRef that is present but unresolvable (wrong group/kind or dangling EdgeConfig) now sets Accepted=False/InvalidParameters + Programmed=False per spec (pinned by the new GatewayInvalidParametersRef conformance test). Data plane stays tolerant — compiled defaults keep serving.

⚠️ Deploy ordering: upgrade the Gateway API CRDs to v1.6.1 (experimental channel) before rolling this chart — the edge watches v1.TCPRoute unconditionally.

Test plan

  • bazel test //... 72/72; runner go vet -tags conformance clean inside a [email protected] checkout
  • Conformance workflow dispatched on this branch (both profiles, 1.6.1 CRDs + new tests): run 29657180055 — result posted before merge

🤖 Generated with Claude Code

bpalermo and others added 3 commits July 18, 2026 16:07
…eters)

M1: gateway-api dep + conformance runner + GATEWAY_API_VERSION -> v1.6.1
(runner restructured for the 1.6 ConfigurableOptions embed; profiles and
features are slices now). Transitive go-openapi/swag split modules added.

M2: TCPRoute/UDPRoute watched at v1 everywhere (graduated in 1.6; the
v1alpha2 fallback was dropped by directive — a v1alpha2-only cluster gets
the type disabled with an upgrade warning via crdcheck). Stale v1alpha2
scheme installs removed from agent root + edge.

M3: a present-but-unresolvable Gateway infrastructure.parametersRef now
sets Accepted=False/InvalidParameters + Programmed=False (pinned by the
new GatewayInvalidParametersRef conformance test); the data plane stays
tolerant (compiled defaults keep serving).

DEPLOY ORDERING: Gateway API CRDs must be upgraded to v1.6.1 BEFORE this
chart rolls (the edge watches v1.TCPRoute unconditionally).

Co-Authored-By: Claude Fable 5 <[email protected]>
- Seed app-backend/web-backend namespaces with a readiness-only echo in
  the mesh overlay: 1.6's new MeshNamespacesMustBeReady requires pods in
  all four namespaces, but a mesh-only suite never applies the gateway
  base manifests that populate those two — Setup timed out at 300s with
  'No pods deployed yet'.
- Run both suites with -parallel 1: 1.6 marked many tests Parallel, and
  concurrent same-match routes on the shared Gateway expose aether's
  missing cross-route oldest-wins precedence (wrong-backend failures on
  8 core tests). Serializing restores the 1.5-equivalent semantics that
  are green; the precedence gap gets a follow-up issue.

Co-Authored-By: Claude Fable 5 <[email protected]>
bpalermo and others added 6 commits July 18, 2026 16:58
…trailing newline

The seeding append glued '---' onto the consumer SA's namespace line
(file had no final newline), corrupting the doc — the consumer echo-v1
ServiceAccount never applied, its Deployment's pods were forbidden, and
1.6's MeshNamespacesMustBeReady starved on the empty consumer namespace.

Co-Authored-By: Claude Fable 5 <[email protected]>
Run 2 hit the 30m timeout mid-suite with zero test failures.

Co-Authored-By: Claude Fable 5 <[email protected]>
CleanupTestResources defaults false in 1.6 — earlier tests' routes
persisted and shadowed later same-match routes (the wrong-backend
failures on / and both weight-distribution failures, parallel or not).

Co-Authored-By: Claude Fable 5 <[email protected]>
…kendRefs

Gateway-api 1.6 conformance contracts:
- A listener whose protocol aether doesn't serve (not HTTP/HTTPS/TLS/TCP)
  gets Accepted=False/UnsupportedProtocol with empty supportedKinds; the
  Gateway rolls up to Accepted=False/ListenersNotValid when NO listener
  is accepted, or Accepted=True/ListenersNotValid when only some are.
- An HTTPRoute rule with NO backendRefs (omitted or empty) now emits the
  fixed 500 route, same as the all-unresolvable case (HTTPRouteNoBackendRefs).

Co-Authored-By: Claude Fable 5 <[email protected]>
…mmed

The mixed fixture Gateway (1 HTTP + 1 INVALID listener) must stay
Programmed=True — the conformance readiness poller requires it and my
previous commit wedged every subsequent test's setup on it (the
GatewayObservedGenerationBump 300s stall). Only a Gateway with NO
accepted listener rolls up Programmed=False.

Co-Authored-By: Claude Fable 5 <[email protected]>
@bpalermo
bpalermo merged commit 91bd2cf into main Jul 18, 2026
15 checks passed
@bpalermo
bpalermo deleted the feat/032-gateway-api-1.6 branch July 18, 2026 21:44
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