Incorrect matching precedence order #755
Labels
area/httproute/core
Relates to all Core features of HTTPRoute
bug
Something isn't working
refined
Requirements are refined and the issue is ready to be implemented.
Milestone
Describe the bug
In the Gateway 0.7.1 release, the HTTPRoute matching precedence order was changed, giving "method" higher precedence than headers and query params.
This change makes our matching precedence logic incorrect.
To Reproduce
Steps to reproduce the behavior:
and this HTTPRoute:
Then execute the following curl command:
You will see a response from
coffee-headers
, but the response should be fromcoffee-method
.Expected behavior
When a request satisfies multiple matches, the match should be selected according to the criteria in the spec: https://github.com/kubernetes-sigs/gateway-api/blob/ab03a594e7db13b8d2579929b204d8d10990fd2b/apis/v1beta1/httproute_types.go#L158
Your environment
The text was updated successfully, but these errors were encountered: