Skip to content

Adds HTTPRoute ParentRef Validation#401

Merged
danehans merged 1 commit intoenvoyproxy:mainfrom
danehans:issue_301_part1
Sep 23, 2022
Merged

Adds HTTPRoute ParentRef Validation#401
danehans merged 1 commit intoenvoyproxy:mainfrom
danehans:issue_301_part1

Conversation

@danehans
Copy link
Copy Markdown
Contributor

@danehans danehans commented Sep 21, 2022

Adds support for validating parentRefs of an HTTPRoute. Previously, the httproute controller would process an HTTPRoute even if it references a gateway that doesn't. This causes EG to perform unnecessary processing. An HTTPRoute does not contain status so an error is surfaced.

Partially Fixes: #301

Signed-off-by: danehans daneyonhansen@gmail.com

@danehans danehans requested a review from a team as a code owner September 21, 2022 01:39
@danehans danehans added the provider/kubernetes Issues related to the Kubernetes provider label Sep 21, 2022
@danehans danehans added this to the 0.2.0-rc2 milestone Sep 21, 2022
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 21, 2022

Codecov Report

Merging #401 (1d3b78f) into main (70a0d3c) will increase coverage by 0.20%.
The diff coverage is 59.61%.

@@            Coverage Diff             @@
##             main     #401      +/-   ##
==========================================
+ Coverage   61.20%   61.40%   +0.20%     
==========================================
  Files          36       36              
  Lines        3714     3762      +48     
==========================================
+ Hits         2273     2310      +37     
- Misses       1317     1325       +8     
- Partials      124      127       +3     
Impacted Files Coverage Δ
internal/provider/kubernetes/httproute.go 60.60% <59.61%> (-1.40%) ⬇️
internal/xds/translator/runner/runner.go 74.07% <0.00%> (-11.12%) ⬇️
internal/provider/kubernetes/gateway.go 68.24% <0.00%> (+3.31%) ⬆️
internal/provider/kubernetes/gatewayclass.go 69.91% <0.00%> (+4.87%) ⬆️

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

@danehans danehans force-pushed the issue_301_part1 branch 3 times, most recently from 2db4dcb to 1d3b78f Compare September 21, 2022 19:04
@danehans danehans force-pushed the issue_301_part1 branch 2 times, most recently from 2b0d11a to 384b8cf Compare September 22, 2022 19:24
Signed-off-by: danehans <daneyonhansen@gmail.com>
@danehans danehans merged commit 25acee5 into envoyproxy:main Sep 23, 2022
@danehans danehans deleted the issue_301_part1 branch September 23, 2022 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

provider/kubernetes Issues related to the Kubernetes provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gateway API Controllers Should Watch Other Gateway API Resources

3 participants