-
Notifications
You must be signed in to change notification settings - Fork 33
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: api machinary #396
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #396 +/- ##
==========================================
- Coverage 81.78% 80.36% -1.42%
==========================================
Files 54 64 +10
Lines 4452 4492 +40
==========================================
- Hits 3641 3610 -31
- Misses 537 593 +56
- Partials 274 289 +15
Flags with carried forward coverage won't be shown. Click here to find out more.
|
a21c7c0
to
e35926c
Compare
e35926c
to
73a12c3
Compare
73a12c3
to
351be0d
Compare
351be0d
to
1529387
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a lot of changes so would appreciate another review but I think this looks pretty good now, nice work!
1529387
to
15753fd
Compare
15753fd
to
ae51ed9
Compare
ae51ed9
to
ff952a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I say we go with this 💯
Currently, this pull request may not be the ideal refactoring, as several functions were refactored into this library package to address issues such as cyclic imports. However, this PR is likely to be the first of many refactors as we determine what should truly exist in the gateway-api-machinery library versus the Kuadrant Operator."
I have the same feeling. And I do not think this PR adds more mess, on the contrary, I think that the packages have been organized in a neat way.
I also have to anticipate that with the WIP topology implementation approaches (at least 2 I am aware of), some references (back refs and direct back refs) between resources will vanish, making some code refactored here useless. |
2a8a381
to
b011707
Compare
Merging this as this has multiple approvals now and have been rebased from main with changes for DNSPolicy and TLSPolicy. All comments are addressed and tests are passing so I think this is safe to merge as is |
Part of #203
This is a general refactoring to enable the relocation of common and useful functions to https://github.com/Kuadrant/gateway-api-machinery/tree/main. It also takes into account the generic interfaces suggested by the current state of https://github.com/Kuadrant/gateway-api-machinery.
The primary objective of this pull request is to consolidate all functionalities into a single
library
package within the Kuadrant Operator. Eventually, we plan to move the entire contents of this package to the gateway-api-machinery repository, replacing the usage of this package with the gateway-api-machinery library, as the current implementation is outdated.Currently, this pull request may not be the ideal refactoring, as several functions were refactored into this
library
package to address issues such as cyclic imports. However, this PR is likely to be the first of many refactors as we determine what should truly exist in the gateway-api-machinery library versus the Kuadrant Operator."