Closed
Description
In kubernetes-sigs/gateway-api#2396, it was clarified that the Gateway Listener status AttachedRoutes field is a count of the number of Routes associated with a Listener regardless of Gateway or Route status.
NGF:
- ignores invalid listeners during attachment -- https://github.com/nginxinc/nginx-gateway-fabric/blob/6707e5a9f045e250097a1d9880b1f1352b6c15be/internal/mode/static/state/graph/httproute.go#L328
- ignores invalid HTTPRoutes - it doesn't attach them - https://github.com/nginxinc/nginx-gateway-fabric/blob/6707e5a9f045e250097a1d9880b1f1352b6c15be/internal/mode/static/state/graph/httproute.go#L266
Acceptance criteria:
- Conform to Gateway spec
See also kubernetes-sigs/gateway-api#2402 (conformance tests for clarified behaviour)