Closed
Description
Background
There is one to one mapping between NKG and GatewayClass resource.
The GatewayClass might be invalid (ex, its controllerName doesn't match NKG controller name). The GatewayClass might not even exist.
For those cases NGK doesn't generate any NGINX configuration and as a result, NGINX will not accept any traffic.
However, NKG still processes Gateways and HTTPRoutes.
Requirements
When GatewayClass is invalid or it is doesn't exist, NGK must report Accepted (false) and appropriate reasons in the statuses of HTTPRoute resources and Gateway resources.
Figure out an appropriate Reason. Check the Gateway API first. If necessary, introduce NKG-specific reasons.
Acceptance Criteria
- implement the requirements
- update the doc https://github.com/nginxinc/nginx-kubernetes-gateway/blob/main/docs/gateway-api-compatibility.md#httproute
Aha! Link: https://nginx.aha.io/features/NKG-17