Bootstrap configuration
You can create a bootstrapping script and Helm will run it right after Waldur release installation.
Example script:
1 2 3 4 5 6 7 8 | |
This script with all necessary additional files
should be placed in bootstrap.dir directory.
Additional configuration variables (bootstrap prefix):
enabled- enable/disable bootstrapscript- main script file inbootstrap.dirfolder.dir- directory with all bootstrap files
Moreover, that is better to install release with --wait flag:
1 | |
This allows running migrations job before a bootstrap one.
more info: link,
Hooks and the Release Lifecycle section)
NB:
-
A script, which contains interaction with a db can fail due to not all migrations are applied. Automatical reruning of the bootstrap job is normal behaviour in such situations.
-
Hence, the script should be idempotent.