-
Notifications
You must be signed in to change notification settings - Fork 29
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: use helper from controller runtime #725
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #725 +/- ##
==========================================
- Coverage 72.84% 71.78% -1.07%
==========================================
Files 28 28
Lines 1812 1804 -8
==========================================
- Hits 1320 1295 -25
- Misses 373 388 +15
- Partials 119 121 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
golangci-lint complains that the errors are not wrapped, we should tackle this :/.
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.
Besides the linter errors, LGTM
Note: this cannot be merged until the 1.12 release is done |
It seems there is something wrong, because tests and linter are failing. =( |
@jvanz I'm a bit stuck with other tasks, would you be so kind to take this over once your PR about the owner reference is merged? 🙏 |
12a7c96
to
64fc1ce
Compare
@kubewarden/kubewarden-developers , I've updated this PR rebasing it on top of main and did some fixes to make the CI happy. To make all our CI green I had to update the controller-gen binary used. Otherwise, we get a nil pointer deref. That's why you can see so many line changes, I've commited the result of the generator after updating it. Let me know if you're fine with that. Otherwise, I can update the generator in another PR or commit the updated manifest files in another PR. |
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'm fine with the update of controller-gen
binary. Everything looks good to me, I left some minor comments.
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.
LGTM apart from the changes requested
8b992e9
to
9cee72f
Compare
Use latest stable release of golangci-lint Signed-off-by: Flavio Castelli <fcastelli@suse.com>
Updates the controller-gen binary used to generate the manifests. Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
Use a more concise way to handle "not found" errors that is made possible by using a controller runtime helper. Signed-off-by: Flavio Castelli <fcastelli@suse.com>
Updates the go.sum file. Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
9cee72f
to
783f2bd
Compare
@kubewarden/kubewarden-developers I've updated this branch rebasing it on top of main and squashing some commits to reduce the number of them. |
Use a more concise way to handle "not found" errors that is made possible by using a controller runtime helper.