Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tolusha The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the reconciler management architecture by moving the reconcile manager from pkg/deploy to pkg/common/reconciler, improving error handling during CheCluster controller reconciliation. The changes add detailed error logging and status updates to help operators diagnose reconciliation failures.
Key changes:
- Moved reconciler management logic from
pkg/deploy/reconcile_manager.gotopkg/common/reconciler/reconcile_manager.go - Enhanced error handling with wrapped errors and improved logging
- Updated all reconciler structs to use the new
reconciler.Reconcilableinterface - Added improved test coverage with new mock-based tests
Reviewed Changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/common/reconciler/reconcile_manager.go | New location for reconciler management logic with enhanced error handling |
| pkg/common/reconciler/reconcile_manager_test.go | New comprehensive test suite using mock reconcilers |
| pkg/deploy/reconcile_manager.go | Removed original reconciler manager implementation |
| pkg/deploy/reconcile_manager_test.go | Removed old test implementation |
| controllers/che/checluster_controller.go | Updated to use new reconciler manager and improved error handling |
| pkg/deploy/tls/*.go | Updated imports to use new reconciler package |
| pkg/deploy/server/*.go | Updated imports to use new reconciler package |
| pkg/deploy/*/**.go | Updated imports across all reconciler implementations |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…d to reconcile Signed-off-by: Anatolii Bazko <abazko@redhat.com>
…d to reconcile
What does this PR do?
This PR improves error handling and visibility when the CheCluster controller fails to reconcile resources. It adds detailed error logging and status updates to help operators quickly identify and diagnose reconciliation
failures.
Screenshot/screencast of this PR
N/A
What issues does this PR fix or reference?
eclipse-che/che#23613
How to test this PR?
OpenShift
or
on Minikube
Common Test Scenarios
PR Checklist
As the author of this Pull Request I made sure that:
Reviewers
Reviewers, please comment how you tested the PR when approving it.