This script queries the Stroom API to download a configuration ZIP bundle. The configuration is compared to the contents of a Git repository and any changes are checked in as a commit.
- Private key for issuing
gitcommands and a corresponding public key authorised by the target Git server. - Existing Git remote, for which the user has push permissions.
- Stroom property
stroom.export.enabledset totrue. - Stroom user account with the following minimum access attributes:
Export Configurationcluster permission.Readaccess to the top-levelSystemnode, or at least one sub-item.
- OAuth2 client and secret access key (for client credentials flow).
./scripts/sync-stroom-config.sh- Customise
/deploy/k8s/cronjob.yaml - Create
Secretcontainingapi-keyandssh-key kubectl apply -f /deploy/k8s/cronjob.yaml