compliantkubernetes-apps
compliantkubernetes-apps copied to clipboard
Upgrade - change the upgrade and migration process
What should be investigated. Automate the upgrade process by creating scripts instead of code snippets to be run manually. Separate the init and config steps from the apply steps and scripts as the CD solution should only run the apply steps and scripts.
Definition of done:
- a process on how and who should create this migration scripts, separated config and apply scripts
- create templates for the migration scripts that can be reused for the main or patch releases
- template migration scripts for how to change yaml config in apps
- add the test steps in a script to run before and after the upgrade
Folks, I upgraded the demo environment to v0.19.0. I feel the migration scripts are going in the right direction.
I have the following suggestions on how to move forward.
- Number the scripts in the order in which an administrator is expected to run them, e.g.,
10_migrate_to_opensearch.sh
. - Put the instructions as comment (or strings) as the start of each migration scripts. Then the "main" migration script could be as simple as
for $SCRIPT in [0-9][0-9]*.sh; do ./$SCRIPT; done
.
My 2 cents.