-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up auto-generated resources in leader and member clusters
1. Split existing stale controller into leader and member folders. 2. The new stale controller in the leader cluster will do following things: * Check MemberClusterAnnounce periodically in the leader cluster and delete the stale CR if its last timestamp annotation `touch-ts` is over 24 hours. * Clean up all corresponding ResourceExports when a MemberClusterAnnounce is deleted. * Clean up stale ResourceExports if there is no existing MemberClusterAnnounce when the controller is started. * Clean up all MemberClusterAnnounces and corresponding ResourceExports when the controller is started with no ClusterSet CR. 3. The ClusterSet controller in leader will remove all remaining ResourceExports and MemberClusterAnnounces when the ClusterSet CR is deleted in the leader cluster. 4. The new stale controller in the member cluster will do following things: * Clean up any stale resources when the ClusterSet is ready. * Clean up any stale resources when the controller is restarted. 5. The ClusterSet controller will be responsible to remove all imported and exported resources for the member cluster when the ClusterSet CR is deleted. Signed-off-by: Lan Luo <[email protected]>
- Loading branch information
1 parent
62a440a
commit bc26130
Showing
28 changed files
with
1,319 additions
and
472 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
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
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
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.