Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.

fix: avoid bundle update errors during deletion#562

Merged
joelanford merged 1 commit into
operator-framework:mainfrom
joelanford:fix-bundle-updates
Sep 21, 2022
Merged

fix: avoid bundle update errors during deletion#562
joelanford merged 1 commit into
operator-framework:mainfrom
joelanford:fix-bundle-updates

Conversation

@joelanford
Copy link
Copy Markdown
Member

@joelanford joelanford commented Sep 12, 2022

Our finalizer code is not integrated with our updater code, which results in two multiple update calls being made during a single reconcile when a bundle is deleted. The first call removes the finalizer, the second attempts to update the status. The second call fails because the bundle has been deleted in etcd after the finalizer is removed with the first call.

This commit fully rips out the bundle updater and refactors things to ensure there’s never more than one status and bundle update per reconcile.

Closes #566

Our finalizer code is not integrated with our updater code, which
results in two multiple update calls being made during a single reconcile
when a bundle is deleted. The first call removes the finalizer, the
second attempts to update the status. The second call fails because the
bundle has been deleted in etcd after the finalizer is removed with the
first call.

This commit fully rips out the bundle updater and refactors things to
ensure there’s never more than one status and bundle update per
reconcile.
@joelanford joelanford requested a review from a team as a code owner September 12, 2022 14:41
@joelanford
Copy link
Copy Markdown
Member Author

If folks think this direction is good, we should probably make a similar change for the bundle deployment controllers.

Copy link
Copy Markdown
Member

@akihikokuroda akihikokuroda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joelanford joelanford merged commit d60b6f0 into operator-framework:main Sep 21, 2022
@joelanford joelanford deleted the fix-bundle-updates branch September 21, 2022 02:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bundle provisioners log "failed to update status" errors when bundles are deleted

2 participants