Configure the ConfigSync mode
Configure the ConfigSync mode
ConfigSync can operate in different modes:
- Publisher mode: Monitors Fusion for changes and pushes them to a Git repository.
- Subscriber mode: Polls a Git repository for changes and applies them to Fusion.
- Pub/Sub mode: Combines the features of both Publisher and Subscriber modes.
sync
configuration in the fusion-config-sync
section of the Helm chart configuration, as shown below.-
Publisher mode:
-
Subscriber mode:
-
PubSub mode:
pub:
The first job reads all the configurations from Fusion, adds all the new or changed files to Git, and then performs agit pull
from the remote GitHub repository using [theresolve
merge strategy^][pub]:
In case of conflicts during the pull command, the changes from Fusion always take precedence (which should be a rare occurrence).[sub]:
After that, all the changes in the GitHub files since the latest commit SHA1 are resolved and applied to Fusion.
If the latest commit SHA1 is not set in the Fusion configuration, it is set to the latest commit SHA1 in the GitHub repository.
That means that the first time the PubSub mode is enabled, ConfigSync does not apply any changes from GitHub to Fusion.[sub]:
The current commit SHA1 is set as the latest commit SHA1 in the Fusion configuration.[pub/sub]:
The next job reads all the configurations from Fusion and compares them with the latest commit SHA1 in the GitHub repository. If there are any differences, the changes from GitHub are applied to Fusion.[pub/sub]:
The process is repeated in a loop.