Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: refactor Gateway API's route parent status update code #6877

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pmalek
Copy link
Member

@pmalek pmalek commented Dec 19, 2024

What this PR does / why we need it:

Refactor route parent status handling for Gateway API routes. This extract code from ensureGatewayReferenceStatusAdded from all the route controllers and adds common functions based on implementation ensureGatewayReferenceStatusAdded into internal/controllers/gateway/route_parent_status.go.

Which issue this PR fixes:

Special notes for your reviewer:

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

@pmalek pmalek self-assigned this Dec 19, 2024
@pmalek pmalek force-pushed the refactor-gateway-api-routes-parentref-status branch 3 times, most recently from 7d65d00 to a4da1d7 Compare December 19, 2024 12:22
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 94.61883% with 12 lines in your changes missing coverage. Please review.

Project coverage is 76.8%. Comparing base (b14df00) to head (c9a2c4c).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...ternal/controllers/gateway/grpcroute_controller.go 0.0% 6 Missing ⚠️
...nternal/controllers/gateway/udproute_controller.go 0.0% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main   #6877      +/-   ##
========================================
+ Coverage   59.0%   76.8%   +17.7%     
========================================
  Files        210     214       +4     
  Lines      25241   25136     -105     
========================================
+ Hits       14917   19308    +4391     
+ Misses      9030    4814    -4216     
+ Partials    1294    1014     -280     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pmalek pmalek force-pushed the refactor-gateway-api-routes-parentref-status branch from a4da1d7 to 74daebb Compare December 19, 2024 13:04
@pmalek pmalek marked this pull request as ready for review December 19, 2024 13:36
@pmalek pmalek requested a review from a team as a code owner December 19, 2024 13:36
@pmalek pmalek enabled auto-merge (squash) December 19, 2024 13:36
@pmalek pmalek added this to the KIC v3.5.x milestone Dec 19, 2024
@pmalek pmalek force-pushed the refactor-gateway-api-routes-parentref-status branch from 74daebb to c9a2c4c Compare December 20, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant