-
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
Unified kuadrant - Add TLSPolicy and DNSPolicy #416
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #416 +/- ##
==========================================
- Coverage 81.15% 80.90% -0.25%
==========================================
Files 40 54 +14
Lines 3210 4452 +1242
==========================================
+ Hits 2605 3602 +997
- Misses 404 562 +158
- Partials 201 288 +87
Flags with carried forward coverage won't be shown. Click here to find out more.
|
a87676a
to
fa47411
Compare
So I have done a scan of the code and other files. All looks as expected. I will try run it locally to verify. But I don't think we need to spend too much time on this PR as it is basically just code moving over. @alexsnaps @eguzki what are your thoughts here? |
@eguzki would like thoughts on the code coverage. We have focused more on the integration tests than unit tests. So although the code bot says its not covered, it is likely covered by an integratation rather than unit. What is the expectation here for kuadrant operator. Do we need to up the unit coverage before merge, or are we happy to merge knowing the coverage is not reflecting the integration tests? |
I'm looking into improving the coverage, there are still tests that have not been added. Also looks like it is including integration tests in the coverage report, lack of TLS tests are probably bringing it down a good bit. |
25c8f85
to
a3d32d3
Compare
I wouldn't over sweat the Codecov stuff… If you know it's covered by integration tests, that's good enough to me certainly |
3d0c590
to
e9841f4
Compare
e9841f4
to
ae98f3e
Compare
It's looking good to me, I like how your organize and match the code within the common and helper functions and the controller logic. I wouldn't bother for the test coverage just yet. Will try locally and wait for when it's ready for review |
6f0668b
to
dd45e98
Compare
* Remove policy-controller * Add kuadrant-dns-operator dependency * Move DNSPolicy api and controller from MGC * patch kuadrant-dns deployment labels * Update image build GH workflows
Add TLSPolicy and controller, moved from MGC
Update status condition logic to use Accepted instead of Ready
Update the dnspolicy controllers and tests to align better with the current kuadrant operator structure.
* import ordering and grouping * add certmanager scheme * typo in variable name (tlsPolicyBaseReconiler -> tlsPolicyBaseReconiler) * add tlspolicy crd and generate manifests * add missing crd to bundle * add missing tlspolicy sample * add missing gateway.networking.k8s.io/policy label * update CRD printcolumns to match kuadrant polices
* add tls controller tests * Return empty array for GetRulesHostnames * Update certmanager version to closer match the version of certmanager we are running v1.7.1 -> v1.12.1 * requeue tlspolicy on TargetNotFound errors
* Remove unnecessary common functions * Return empty array for GetRulesHostnames * Add additional unit tests for k8s utils
Update dns-operator version v0.1.0
dffcb1f
to
d7c9aa8
Compare
I can't get a port forward option to work with the TLS user guide, so i think saying you should use docker-mac-net-connect on a mac somewhere in the guides will have to do. I don't however have any clue how it works or what is involved with that so can someone give me a sentence to add? |
* Add dns-operator to update-stored-dependencies-version workflow * Update dns policy sample * Removed Pointer test helper in favour of using ptr.To from * Undo hard coded images k8s.io/utils/ptr. * Set dnspolicy as owner of dnsrecords * Add additional certmanager tests
* Add dnspolicy overview and reference docs * Add tlspolicy overview and reference docs
0841fa3
to
6a2c94d
Compare
Maybe we add just that for now as a dependency in the docs? |
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.
🎖️
As much as possible the DNS and TLS policy code has not changed from what is currently in MGC, but has been modified to fit in with the kuadrant operator code base. The only noticeable difference is the status of the polices is now different, as it now shows a "Status" instead of "Ready":
Verification
Run though DNS and TLS user guides: