-
Notifications
You must be signed in to change notification settings - Fork 40
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
TransportURL: rely on PatchInstance instead of manual Update #217
TransportURL: rely on PatchInstance instead of manual Update #217
Conversation
I mixed things up. I need to rethink the reasoning to remove the extra update, but the issue is not as sever as I thought here. |
The transporturl controller did a separate client.Update after it initialized it status then continued the normal reconciliation. As it is explicitly updated the status subresource and no finalizer is added this probably works. However to allow easier reasoning about when the instance is updated this patch removes the explicit Update call and instead returns immediately to use the deferred PatchInstance call as the only place that persists the instance.
73d2dca
to
77fda22
Compare
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: gibizer, stuggi 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 |
recheck |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/79fa3a5dbde84ffe9ca0f745cc8c585c ✔️ openstack-k8s-operators-content-provider SUCCESS in 26m 33s |
recheck retry limit |
ba41f87
into
openstack-k8s-operators:main
The transporturl controller did a separate client.Update after
it initialized it status then continued the normal reconciliation. As it
is explicitly updated the status subresource and no finalizer is added
this probably works. However to allow easier reasoning about when the
instance is updated this patch removes the explicit Update call and
instead returns immediately to use the deferred PatchInstance call
as the only place that persists the instance.