-
Notifications
You must be signed in to change notification settings - Fork 1k
Bump controller-runtime from v0.21.0 to v0.22.4 #6929
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
Bump controller-runtime from v0.21.0 to v0.22.4 #6929
Conversation
Summary of ChangesHello @RainbowMango, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request performs a significant upgrade of the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Pull Request Overview
This PR updates sigs.k8s.io/controller-runtime from v0.21.0 to v0.22.4. This is a standard dependency update with vendored code from the upstream library.
Key changes include:
- New Apply() client method support for Server-Side Apply
- Warmup runnables feature for improved leader election failover
- Enhanced fake client with managed fields support
- Priority queue improvements and bug fixes
Reviewed Changes
Copilot reviewed 1 out of 42 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| go.mod, go.sum | Updated controller-runtime dependency from v0.21.0 to v0.22.4 |
| vendor/modules.txt | Updated vendored module version reference |
| vendor/sigs.k8s.io/controller-runtime/** | Vendored code updates from upstream controller-runtime library including new features, bug fixes, and API additions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Code Review
This pull request updates the sigs.k8s.io/controller-runtime dependency from v0.21.0 to v0.22.4. This is a routine dependency update that brings in several improvements and new features from the upstream project. Notably, this version introduces client.Apply for server-side apply operations, which is now the recommended approach over client.Patch(..., client.Apply, ...). Other improvements include a new controller warmup feature and panic recovery in conversion webhooks. The changes are confined to go.mod, go.sum, and the vendor directory, which is expected for a dependency bump. The update appears to be handled correctly. This PR looks good to merge.
446c008 to
e27887b
Compare
|
Echo failing tests here(see full log from here): The root cause is that since [email protected], the fake client will never populate the type meta(APIVersion and Kind) when getting the object, but that info is required to emit the event. See controller-runtime PR#3229 |
f66c55d to
3e3707d
Compare
|
Another failing unit test(see full log from here): The test is expecting a work with the name
|
3e3707d to
4d45e28
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6929 +/- ##
==========================================
+ Coverage 46.43% 46.45% +0.01%
==========================================
Files 698 698
Lines 47788 47792 +4
==========================================
+ Hits 22189 22200 +11
+ Misses 23929 23925 -4
+ Partials 1670 1667 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/gemini review |
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.
Code Review
This pull request successfully updates controller-runtime from v0.21.0 to v0.22.4. The changes correctly address the breaking changes introduced in the new version, specifically by adding workarounds for the fake client's behavior regarding TypeMeta and by updating test mocks to include the new Apply method. The code modifications are well-commented and justified. The pull request is in good shape and ready for merging.
|
/retest |
|
/retest |
Signed-off-by: RainbowMango <[email protected]>
…n/kind Signed-off-by: RainbowMango <[email protected]>
4d45e28 to
d89c544
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR updates
controller-runtimeto v0.22.4.Which issue(s) this PR fixes:
Fixes #
Part of #6862
Special notes for your reviewer:
I'm surprised that no breaking change this time :)Adopted changes:
Does this PR introduce a user-facing change?: