-
Notifications
You must be signed in to change notification settings - Fork 295
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
🌱 Improve logging of VSphereCluster, ProviderServiceAccount and ServiceDiscovery controllers #2352
🌱 Improve logging of VSphereCluster, ProviderServiceAccount and ServiceDiscovery controllers #2352
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2352 +/- ##
==========================================
+ Coverage 60.37% 60.97% +0.59%
==========================================
Files 164 164
Lines 9442 9465 +23
==========================================
+ Hits 5701 5771 +70
+ Misses 3324 3284 -40
+ Partials 417 410 -7
☔ View full report in Codecov by Sentry. |
645848c
to
e96b674
Compare
/test pull-cluster-api-provider-vsphere-e2e-full-main |
e96b674
to
b5ae572
Compare
de96b33
to
acda9f1
Compare
/test pull-cluster-api-provider-vsphere-e2e-full-main |
3d3896a
to
555bd27
Compare
/test pull-cluster-api-provider-vsphere-e2e-full-main |
1 similar comment
/test pull-cluster-api-provider-vsphere-e2e-full-main |
Whilst you're doing this, i would enable |
Thx, nice one! Will do |
/test pull-cluster-api-provider-vsphere-e2e-full-main |
/lgtm remove Should be squashed before merge. |
/lgtm cancel |
I agree. This escalated a bit and it was a mixture of keeping the PR safe and in some cases fixing up things while I'm already there. A majority of the "scope creep" was because the only way to safely refactor this was to remove the I had an intermediate version where I only tried to stop using these fields and not setting them in some controller but this blew up pretty badly in some cases I missed in unit tests (panic's all over the place). Because I couldn't be sure that we have full coverage I thought it's the safer option to play it safe and drop these fields entirely instead of hoping that I got all relevant places and then risking panic's in rare edge cases in production later. This way the compiler took care of ensuring that there are no panics when |
Pushed some fixes. Will squash later after @chrischdi 's review and corresponding fixes |
codecov failed because of the flake in our tests |
/test pull-cluster-api-provider-vsphere-e2e-full-main |
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.
One thing to maybe take another look (I may missed something there?!)
A lot of awesome small fixes are included too! 🎉
@@ -17,6 +17,7 @@ limitations under the License. | |||
package network |
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.
not in scope of this PR, but wondering if we should splitup this file to netop_provider_test.go
and nsxt_provider_test.go
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.
Feel free to open an issue/PR for it. Probably it should be one file per provider (including dummy)
/lgtm |
LGTM label has been added. Git tree hash: 2231c60b5e8f9411512e105d14ac77b86fdcebde
|
Signed-off-by: Stefan Büringer [email protected]
7113943
to
09ff688
Compare
/test pull-cluster-api-provider-vsphere-e2e-full-main |
/test ? |
This comment was marked as outdated.
This comment was marked as outdated.
/test pull-cluster-api-provider-vsphere-conformance-main |
@sbueringer: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/hold cancel |
Set up golang context when initiating controller manager and also pass it down
to VSphereCluster controller
Signed-off-by: Gong Zhang [email protected]
What this PR does / why we need it:
Have to do a few more things + the underlying PR has to be merged first
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Part of #2076