Skip to content
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

OSSM-6153 Simplify error handling around updateStatus() #1742

Merged
merged 1 commit into from Mar 27, 2024

Conversation

luksa
Copy link
Contributor

@luksa luksa commented Mar 27, 2024

Previously, when both a reconcile and a status update error occurred, we logged the update error and returned the reconcile error. Now, we simply return a composite of both errors.

This commit also removes unneeded conflict handling, since status is always updated via PATCH, which does not return 409 Conflict.

@openshift-ci openshift-ci bot added the size/M label Mar 27, 2024
@luksa luksa changed the title Simplify error handling around updateStatus() OSSM-6153 Simplify error handling around updateStatus() Mar 27, 2024
Previously, when both a reconcile and a status update error occurred, we logged the update error and returned the reconcile error. Now, we simply return a composite of both errors.

This commit also removes unneeded conflict handling, since status is always updated via PATCH, which does not return 409 Conflict.
@luksa
Copy link
Contributor Author

luksa commented Mar 27, 2024

/retest

@openshift-merge-bot openshift-merge-bot bot merged commit 2ee8636 into maistra:maistra-3.0 Mar 27, 2024
11 checks passed
@luksa luksa deleted the OSSM-6153 branch March 27, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants