Closed
Description
Describe the bug
Routes that reference an ignored Gateway are marked as Accepted:
Name: coffee
Namespace: default
Labels: <none>
Annotations: <none>
API Version: gateway.networking.k8s.io/v1
Kind: HTTPRoute
Metadata:
Creation Timestamp: 2024-05-21T21:42:21Z
Generation: 2
Resource Version: 3076364
UID: beec9954-aadc-4023-acac-4e1c6643d5b4
Spec:
Hostnames:
cafe.example.com
Parent Refs:
Group: gateway.networking.k8s.io
Kind: Gateway
Name: ignored-gateway
Section Name: http
Rules:
Backend Refs:
Group:
Kind: Service
Name: coffee
Port: 80
Weight: 1
Matches:
Path:
Type: PathPrefix
Value: /coffee
Status:
Parents:
Conditions:
Last Transition Time: 2024-05-21T21:44:17Z
Message: The route is accepted
Observed Generation: 2
Reason: Accepted
Status: True
Type: Accepted
Last Transition Time: 2024-05-21T21:44:17Z
Message: spec.rules[0].backendRefs[0].name: Not found: "coffee"
Observed Generation: 2
Reason: BackendNotFound
Status: False
Type: ResolvedRefs
Last Transition Time: 2024-05-21T21:44:17Z
Message: The condition for this has not been implemented yet: Gateway is ignored
Observed Generation: 2
Reason: TODO
Status: True
Type: TODO
Controller Name: gateway.nginx.org/nginx-gateway-controller
Parent Ref:
Group: gateway.networking.k8s.io
Kind: Gateway
Name: ignored-gateway
Namespace: default
Section Name: http
To Reproduce
Steps to reproduce the behavior:
- Install NGF
- Create 2 Gateways
- Create an HTTP/GRPCRoute that references the ignored gateway
- Check the status of the route
Expected behavior
The parentRef that references the ignored Gateway should have the condition Accepted/False.
Your environment
- Version of the NGINX Gateway Fabric - edge 5f9ec2d
Additional context