-
Notifications
You must be signed in to change notification settings - Fork 905
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
feat(claim): Add SYCNED condition to XRs and XRCs #2968
Conversation
273a722
to
4a46870
Compare
} | ||
|
||
return res, errors.Wrap(r.client.Status().Update(ctx, cm), errUpdateClaimStatus) | ||
} |
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.
I'd prefer to update the reconciler to set ReconcileError
as part of the existing SetConditions
calls, rather than moving the bulk of the logic into a wrapped reconcile
method. The former approach is more in line with how we approach this in the managed reconciler, for example:
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.
I rewrote the changes so the status updates follow the old pattern, although I don't think its the best decision and creates a lot of redundant code.
@negz can you have another look at it?
Fixes crossplane#2850 * Add `Synced` condition that can be used to track reconcile errors (similar to managed resources in providers) * Add an additional printer column to XR CRDs that references the `Synced` condition Signed-off-by: Maximilian Blatt <maximilian.blatt-extern@deutschebahn.com> (external expert on behalf of DB Netz AG)
Apparently I can't merge this PR - I think because it hasn't been approved by any CODEOWNERS (which would in this case be a member of the reviewers group or muvaf). |
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.
Stamping to unblock merge based on @negz approval.
Description of your changes
Fixes #2850
Synced
condition that can be used to track reconcile errors(similar to managed resources in providers)
Synced
conditionI have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
Manually and unit tests