-
Notifications
You must be signed in to change notification settings - Fork 142
Description
Describe the bug
If a gateway is created and referring to an NginxProxy through the infrastructure.parametersRef, it is not rejected if the NginxProxy does not exist.
The specification states in https://gateway-api.sigs.k8s.io/reference/1.4/spec/#gatewayinfrastructure:
"If the referent cannot be found, refers to an unsupported kind, or when
the data within that resource is malformed, the Gateway SHOULD be
rejected with the "Accepted" status condition set to "False" and an
"InvalidParameters" reason."
This was detected because the NodePort assigned was not expected but a random port. Thus no traffic could be routed through the dataplane.
No logs showing any problem.
To Reproduce
Just follow the getting started guide but create gateway first.
Expected behavior
Gateway rejected as spec state
Logs indicating the problem
Your environment
Kind
NGF 2.2.1
Kubernetes v1.34.0
Additional context
Add any other context about the problem here. Any log files you want to share.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status