Skip to content

Derive Gateway addresses from Service status instead of hardcoded 127.0.0.1#36

Merged
RobbieMcKinstry merged 1 commit intotrunkfrom
robbie/multi-1094
Apr 1, 2026
Merged

Derive Gateway addresses from Service status instead of hardcoded 127.0.0.1#36
RobbieMcKinstry merged 1 commit intotrunkfrom
robbie/multi-1094

Conversation

@RobbieMcKinstry
Copy link
Copy Markdown
Contributor

Replace the hardcoded 127.0.0.1 Gateway address with dynamic address
derivation from cluster state. The address resolution follows this
priority order:

  1. Static addresses from gateway.spec.addresses (user-specified)
  2. LoadBalancer ingress IPs/hostnames from the data plane Service
  3. Node internal IP (for NodePort/hostPort, e.g. Kind clusters)
  4. Service ClusterIP

When no address is available (e.g. first reconciliation before the
Service exists), the Gateway is set to Accepted=True but
Programmed=False with reason AddressNotAssigned.

This is required for the GatewayWithAttachedRoutes conformance test,
which expects real addresses from the Service status rather than
localhost.

Copy link
Copy Markdown
Contributor Author

RobbieMcKinstry commented Apr 1, 2026

Base automatically changed from robbie/multi-1092 to trunk April 1, 2026 17:46
….0.0.1

Replace the hardcoded 127.0.0.1 Gateway address with dynamic address
derivation from cluster state. The address resolution follows this
priority order:

1. Static addresses from gateway.spec.addresses (user-specified)
2. LoadBalancer ingress IPs/hostnames from the data plane Service
3. Node internal IP (for NodePort/hostPort, e.g. Kind clusters)
4. Service ClusterIP

When no address is available (e.g. first reconciliation before the
Service exists), the Gateway is set to Accepted=True but
Programmed=False with reason AddressNotAssigned.

This is required for the GatewayWithAttachedRoutes conformance test,
which expects real addresses from the Service status rather than
localhost.
@RobbieMcKinstry RobbieMcKinstry added this pull request to the merge queue Apr 1, 2026
Merged via the queue into trunk with commit 6bab4d8 Apr 1, 2026
5 checks passed
@RobbieMcKinstry RobbieMcKinstry deleted the robbie/multi-1094 branch April 1, 2026 18:09
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