summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mariadb-galera/templates
diff options
context:
space:
mode:
authorMarat Salakhutdinov <marat.salakhutdinov@bell.ca>2020-06-27 23:18:17 -0400
committerMarat Salakhutdinov <marat.salakhutdinov@bell.ca>2020-07-01 10:54:26 -0400
commita72170b49e04aacb2ff476965904900fe5559fef (patch)
tree156288bec268a3c2cadc38d506f82c243b9316ae /kubernetes/common/mariadb-galera/templates
parentd610a48073273ba043d54647b73b4754a7b8441e (diff)
[COMMON] fix logic of post upgrade hook script to handle upgrade run without any changes to charts that could cause loss of all data.
Issue-ID: OOM-2442 Signed-off-by: Marat Salakhutdinov <marat.salakhutdinov@bell.ca> Change-Id: Ifd3bbc0f63e95b1c8797ecd09a891195faafc8c2
Diffstat (limited to 'kubernetes/common/mariadb-galera/templates')
-rw-r--r--kubernetes/common/mariadb-galera/templates/job.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/kubernetes/common/mariadb-galera/templates/job.yaml b/kubernetes/common/mariadb-galera/templates/job.yaml
index cc71bb855c..db56f3e046 100644
--- a/kubernetes/common/mariadb-galera/templates/job.yaml
+++ b/kubernetes/common/mariadb-galera/templates/job.yaml
@@ -72,6 +72,8 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
+ - name: REPLICA_COUNT
+ value: "{{ .Values.replicaCount }}"
command: ["/bin/bash", "-c", "--"]
args: ["/upgrade/post-upgrade-script.sh"]
volumeMounts: