diff options
author | Marat Salakhutdinov <marat.salakhutdinov@bell.ca> | 2020-06-27 23:18:17 -0400 |
---|---|---|
committer | Marat Salakhutdinov <marat.salakhutdinov@bell.ca> | 2020-07-01 10:54:26 -0400 |
commit | a72170b49e04aacb2ff476965904900fe5559fef (patch) | |
tree | 156288bec268a3c2cadc38d506f82c243b9316ae /kubernetes/common/mariadb-galera/templates/job.yaml | |
parent | d610a48073273ba043d54647b73b4754a7b8441e (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/job.yaml')
-rw-r--r-- | kubernetes/common/mariadb-galera/templates/job.yaml | 2 |
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: |