-
Notifications
You must be signed in to change notification settings - Fork 190
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
Patch the correct observed state after a rm.ReadOne
call
#76
Conversation
i'm currently testing this fix with |
@a-hilaly you may want to update the PR/commit message to mention that |
/approve |
For some controllers we noticed an incorrect reconciliation behaviour when a custom hook code was returning a `RequeueNeededAfter` error. More precisely `resourceManager.ReadOne` was not returning the correct observed state when `sdkFind` returns with an error. This bug was causing the reconciler to patch to wrong state (`desird` instead `observed`). This patch fixes this issue by passing the correct observed state to `onError`.
d182f73
to
f9fcdb6
Compare
@jaypipes Updated, PTAL again. |
/unhold |
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.
👍
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: A-Hilaly, jaypipes, vijtrip2 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue aws-controllers-k8s/community#807
For some controllers we noticed an incorrect reconciliation behaviour
when a custom hook code was returning a
RequeueNeededAfter
error.More precisely
resourceManager.ReadOne
was not returning the correctobserved state when
sdkFind
returns with an error. Which was causingthe reconciler to patch to wrong state (
desird
insteadobserved
).This patch fixes this issue by passing the correct observed state to
onError
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.