refactor: separate conditions computing for listeners and routes into status pkg
What type of PR is this?
What this PR does / why we need it:
- move gateway listeners and route conditions computing logic from
internal/gatewayapi/context.gotointernal/gatewayapi/status/ - separate gateway, gatewayclass conditions computing and tests in
internal/status/conditions.gointo each corresponding place ininternal/gatewayapi/status/xxx.go
Which issue(s) this PR fixes:
Fixes #860
Codecov Report
Attention: Patch coverage is 74.01575% with 99 lines in your changes are missing coverage. Please review.
Project coverage is 64.57%. Comparing base (
4c52f10) to head (aa1b606). Report is 4 commits behind head on main.
:exclamation: Current head aa1b606 differs from pull request most recent head 7321f6e. Consider uploading reports for the commit 7321f6e to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## main #2951 +/- ##
==========================================
- Coverage 66.89% 64.57% -2.32%
==========================================
Files 163 123 -40
Lines 23453 21331 -2122
==========================================
- Hits 15689 13775 -1914
+ Misses 6838 6710 -128
+ Partials 926 846 -80
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
should this live under internal/gatewayapi/status?
should this live under
internal/gatewayapi/status?
currently the conditions computing for Gateway and GatewayClass lives in internal/status, we should group them together, so I also move them into internal/status.
/retest
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!
thanks for unifying all the logic here @shawnh2 !
I'm a +1 on @zirain's idea of moving the status pieces under /internal/gatewayapi/status since they are all tied to GWAPI resources
we can move out the k8s piece i.e. the updator into internal/kubernetes/status
https://github.com/envoyproxy/gateway/blob/main/internal/status/status.go
thanks for unifying all the logic here @shawnh2 !
I'm a +1 on @zirain's idea of moving the status pieces under
/internal/gatewayapi/statussince they are all tied to GWAPI resourceswe can move out the k8s piece i.e. the updator into
internal/kubernetes/statushttps://github.com/envoyproxy/gateway/blob/main/internal/status/status.go
Sure, so in this case we don't need internal/status anymore.
/retest
/retest