[COMMON] add pre upgrade script for mariadb-galera 36/105636/15
authortringuyen <tri.nguyen@tatacommunications.com>
Wed, 1 Apr 2020 17:51:06 +0000 (17:51 +0000)
committertringuyen <tri.nguyen@tatacommunications.com>
Fri, 5 Jun 2020 05:01:56 +0000 (05:01 +0000)
commiteb9eb59171a43d25fb012aaad0a1d37ca86bc2bf
treeaa88cc401491d5251abfe9193ab5fd6163d4ffae
parentaf7fd0ed77933189c1f2263e078c38e4c65f4c86
[COMMON] add pre upgrade script for mariadb-galera

When upgrading from a version to another, it may be impossible to do it
"simply" because of changes in immutable properties of statefulsets. We
change that here by creating a temporary deployment which will hold the
whole databases during the time the old statefulset gets destroyed and
the new one gets created.

Issue-ID: OOM-2316
Signed-off-by: tringuyen <tri.nguyen@tatacommunications.com>
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I318d72830d5002f50597e23e0753e292f8b47c53
kubernetes/common/mariadb-galera/resources/create-deployment.yml [new file with mode: 0644]
kubernetes/common/mariadb-galera/resources/post-upgrade-script.sh [new file with mode: 0644]
kubernetes/common/mariadb-galera/resources/upgrade-scripts.sh [new file with mode: 0644]
kubernetes/common/mariadb-galera/templates/configmap.yaml
kubernetes/common/mariadb-galera/templates/job.yaml [new file with mode: 0644]
kubernetes/common/mariadb-galera/values.yaml
kubernetes/onap/values.yaml