-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch Subscription status when CSV is unreferenced
In some situations when actions are happening quickly, OLM can lose the connection between the Subscription and the ClusterServiceVersion, which leads to a "constraints not satisfiable" condition on the Subscription. It can be hard to reproduce the exact situation we've seen rarely in our tests, but manually deleting and immediately recreating the subscription causes a similar situation. In this change, in those situations, the controller will intervene after 30 seconds by updating the Subscription status directly. The implementation allows for a 10 second window for the intervention, during which the controller may update the status multiple times, to address a case where OLM immediately overwrote the update. If the window is missed, the controller may schedule another time. This is intended to give time to OLM to potentially resolve the situation on its own. Refs: - https://issues.redhat.com/browse/ACM-11453 Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
- Loading branch information
1 parent
1e35ebf
commit 88c37db
Showing
7 changed files
with
271 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.