[COMMON] add pre upgrade script for mariadb-galera 36/107336/2
authortringuyen <tri.nguyen@tatacommunications.com>
Wed, 1 Apr 2020 17:51:06 +0000 (17:51 +0000)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 10 Jun 2020 14:10:02 +0000 (14:10 +0000)
commitf5993cdff9c9d873966d24e7987094fee4d13f0d
tree09beb1733decc427e141b10c4a70a986b442fe76
parent1903b2c5c802e16d30207f6ec4ba58d6bc034280
[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
(cherry picked from commit eb9eb59171a43d25fb012aaad0a1d37ca86bc2bf)
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