COO-1699:chore: migrate to controller-runtime client.Apply over client.Patch#1031
COO-1699:chore: migrate to controller-runtime client.Apply over client.Patch#1031jan--f wants to merge 1 commit into
Conversation
|
@jan--f: This pull request references COO-1699 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this: 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jan--f The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe Updater reconciler's resource reconciliation path was switched from a deprecated Patch-based apply approach to using client.Apply directly. A new internal clientObjectApplyConfig type wraps client.Object to satisfy apply-configuration requirements, implementing metadata getters and JSON marshaling. Corresponding unit tests for tracing-capability-enabled scenarios were updated to mock a single Apply call instead of multiple Patch calls per resource type. Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: Jan Fajerski <jan@fajerski.name>
| return &av | ||
| } | ||
|
|
||
| func (a *clientObjectApplyConfig) MarshalJSON() ([]byte, error) { |
There was a problem hiding this comment.
Should also unmarshalling be delegated to a?
No description provided.