CNF-26102: Fix istiocsr updateCondition error aggregation bug#462
CNF-26102: Fix istiocsr updateCondition error aggregation bug#462sebrandon1 wants to merge 1 commit into
Conversation
|
@sebrandon1: This pull request references CNF-26102 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 "5.0.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. |
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe ChangesError aggregation correction
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sebrandon1 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 |
When both a reconciliation failure and a status update failure occur,
updateCondition aggregated {err, errUpdate} instead of {prependErr,
errUpdate}, silently dropping the original reconcile error. The
trustmanager version of the same function correctly uses prependErr.
874b029 to
45ba1c0
Compare
|
@sebrandon1: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
Summary
updateConditionin istiocsrutils.go:484aggregated{err, errUpdate}instead of{prependErr, errUpdate}, silently dropping the original reconcile error when both the reconciliation and status update failprependErrerrtoprependErrTest plan
go test ./pkg/controller/istiocsr/... -count=1— 117 passed)make lintcleanSummary by CodeRabbit