forked from stolostron/multicluster-global-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π Refactor the structure of the global hub manager (stolostron#1166)
* refactor manager Signed-off-by: myan <[email protected]> * add update Signed-off-by: myan <[email protected]> * add loading Signed-off-by: myan <[email protected]> * fix the error Signed-off-by: myan <[email protected]> * format code Signed-off-by: myan <[email protected]> * fix the build error Signed-off-by: myan <[email protected]> * test ut and integration Signed-off-by: myan <[email protected]> * add document Signed-off-by: myan <[email protected]> * fix the sonar Signed-off-by: myan <[email protected]> * add rename Signed-off-by: myan <[email protected]> * update readme Signed-off-by: myan <[email protected]> * fix the build Signed-off-by: myan <[email protected]> * fix the dir Signed-off-by: myan <[email protected]> * update docker file Signed-off-by: myan <[email protected]> --------- Signed-off-by: myan <[email protected]>
- Loading branch information
Showing
118 changed files
with
640 additions
and
864 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Multicluster Global Hub Manager | ||
|
||
The Global Hub Manager is responsible for distributing workloads across clusters and collecting resource status data into its database via transport. | ||
|
||
## Structure | ||
|
||
- **manager** | ||
- **cmd**: Command-line utilities for the manager. | ||
- **pkg**: Core logic and functionalities. | ||
- **configs**: Holds configurations, schemas, and related assets. | ||
- **controllers**: Includes common controllers such as migration and backup controllers. | ||
- **processes**: Periodically running internal jobs, such as the policy compliance cronjob and managed hub cluster management job. | ||
- **restapis**: Exposes REST APIs, such as managed clusters, policies, and subscriptions. | ||
- **spec**: | ||
- **specdb**: Handles database operations for synchronizing resources to the database and retrieving them for transport. | ||
- **controllers**: Watches resources and persists them in the database. | ||
- **syncers**: Syncs resources from the database and sends them via transport. | ||
- **status**: | ||
- **conflator**: Merges bundles inserted by transports and prepares them for dispatch. | ||
- **dispactcher**: Routes bundles or events between components, from transport to conflator, and delivers bundles from the conflator to the database worker pool. | ||
- **handlers**: Defines how transferred bundles are persisted in the database. | ||
- **webhook**: The webhooks, such as disabling placement controllers for the global resource. |
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
2 changes: 1 addition & 1 deletion
2
manager/pkg/config/manager_scheme.go β manager/pkg/configs/scheme.go
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.