Skip to content

internal/gatewayapi: support HTTP method matching#658

Merged
skriss merged 1 commit into
envoyproxy:mainfrom
skriss:pr-http-method-matching
Oct 28, 2022
Merged

internal/gatewayapi: support HTTP method matching#658
skriss merged 1 commit into
envoyproxy:mainfrom
skriss:pr-http-method-matching

Conversation

@skriss
Copy link
Copy Markdown
Contributor

@skriss skriss commented Oct 28, 2022

Closes #655.

Signed-off-by: Steve Kriss krisss@vmware.com

Note, the conformance test for this was added after Gateway API v0.5.1 so we can't run it until we pick up v0.6.0, but here are the results from running it manually from main:

--- PASS: TestConformance (17.18s)
    --- PASS: TestConformance/HTTPRouteMethodMatching (1.04s)
        --- PASS: TestConformance/HTTPRouteMethodMatching/2_request_to_'/'_should_receive_a_404 (4.04s)
        --- PASS: TestConformance/HTTPRouteMethodMatching/0_request_to_'/'_should_go_to_infra-backend-v1 (4.04s)
        --- PASS: TestConformance/HTTPRouteMethodMatching/1_request_to_'/'_should_go_to_infra-backend-v2 (4.05s)

I'll file another issue to remind us to enable the test down the road.

Closes envoyproxy#655.

Signed-off-by: Steve Kriss <krisss@vmware.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #658 (ea340f5) into main (09155a9) will decrease coverage by 0.36%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #658      +/-   ##
==========================================
- Coverage   62.92%   62.56%   -0.37%     
==========================================
  Files          47       47              
  Lines        5756     5762       +6     
==========================================
- Hits         3622     3605      -17     
- Misses       1903     1925      +22     
- Partials      231      232       +1     
Impacted Files Coverage Δ
internal/gatewayapi/translator.go 84.43% <100.00%> (+0.08%) ⬆️
internal/provider/kubernetes/tlsroute.go 53.74% <0.00%> (-5.73%) ⬇️
internal/provider/kubernetes/gateway.go 49.68% <0.00%> (-1.92%) ⬇️
internal/provider/kubernetes/gatewayclass.go 73.18% <0.00%> (-0.73%) ⬇️

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

Comment thread internal/gatewayapi/translator.go
@skriss skriss merged commit f88877d into envoyproxy:main Oct 28, 2022
@skriss skriss deleted the pr-http-method-matching branch October 28, 2022 22:44
@danehans
Copy link
Copy Markdown
Contributor

@skriss does a conformance test exist for this functionality?

@skriss
Copy link
Copy Markdown
Contributor Author

skriss commented Oct 29, 2022

@skriss does a conformance test exist for this functionality?

Yes but it's not in the GWAPI v0.5.1 release so we can't easily run it yet -- see #658 (comment) and #659.

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.

support HTTP method matching for HTTPRoute (extended conformance)

4 participants