-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make spec-sync handle all policy creations, updates, and deletions
The status-sync watches the managed cluster where as the spec-sync watches the hub cluster. This led to the status-sync in charge of recreating the policy on the managed cluster if it was deleted, deleting it if it was deleted on the hub, and updating if there a mismatch. Since the controllers use caches, there can be a race condition where one of the controller's caches updates before the other one. To avoid this race condition, trigger a spec-sync reconcile instead. Relates: https://issues.redhat.com/browse/ACM-10500 Signed-off-by: mprahl <[email protected]>
- Loading branch information
1 parent
86d0595
commit 5aae21c
Showing
3 changed files
with
55 additions
and
35 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
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