Skip to content

Sort match conditions based on Gateway API Spec#508

Merged
danehans merged 5 commits intoenvoyproxy:mainfrom
arkodg:sort-match
Oct 7, 2022
Merged

Sort match conditions based on Gateway API Spec#508
danehans merged 5 commits intoenvoyproxy:mainfrom
arkodg:sort-match

Conversation

@arkodg
Copy link
Contributor

@arkodg arkodg commented Oct 5, 2022

Sort based on the match precedence defined in
https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io%2fv1beta1.HTTPRouteRule

Fixes: #436 Fixes: #483

Signed-off-by: Arko Dasgupta arko@tetrate.io

@arkodg arkodg requested a review from a team as a code owner October 5, 2022 18:01
@arkodg arkodg marked this pull request as draft October 5, 2022 18:02
@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2022

Codecov Report

Merging #508 (c634b6a) into main (5bf94c1) will decrease coverage by 0.70%.
The diff coverage is 78.26%.

@@            Coverage Diff             @@
##             main     #508      +/-   ##
==========================================
- Coverage   63.48%   62.77%   -0.71%     
==========================================
  Files          40       42       +2     
  Lines        4425     4513      +88     
==========================================
+ Hits         2809     2833      +24     
- Misses       1471     1534      +63     
- Partials      145      146       +1     
Impacted Files Coverage Δ
internal/gatewayapi/sort.go 76.74% <76.74%> (ø)
internal/gatewayapi/translator.go 91.14% <100.00%> (+0.01%) ⬆️
internal/xds/translator/runner/runner.go 0.00% <0.00%> (-86.67%) ⬇️
internal/cmd/root.go 100.00% <0.00%> (ø)
internal/cmd/versions.go 28.57% <0.00%> (ø)
internal/gatewayapi/helpers.go 66.66% <0.00%> (+1.75%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
@arkodg arkodg marked this pull request as ready for review October 5, 2022 21:45
@arkodg arkodg marked this pull request as draft October 5, 2022 21:46
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
@arkodg arkodg marked this pull request as ready for review October 5, 2022 23:19
@arkodg arkodg requested a review from skriss October 5, 2022 23:20
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Copy link
Contributor

@danehans danehans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, otherwise /lgtm.

Alice-Lilith
Alice-Lilith previously approved these changes Oct 7, 2022
Copy link
Member

@Alice-Lilith Alice-Lilith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with a +1 to @danehans's comment

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
@danehans danehans merged commit 3ec7db1 into envoyproxy:main Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTTPRouteMatchingAcrossRoutes sometimes fails HTTPRouteMatching Conformance Test Fails

4 participants