summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mariadb-galera/templates/job.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-07-08 19:58:42 +0000
committerGerrit Code Review <gerrit@onap.org>2020-07-08 19:58:42 +0000
commit4c2f578754c79f0336e4ba83a236436af36fd58e (patch)
tree08922b31a181efb34d06729311b394ca7ee09bfc /kubernetes/common/mariadb-galera/templates/job.yaml
parentae24e1f93df345903556301bd5c75bda1aa9af69 (diff)
parenta72170b49e04aacb2ff476965904900fe5559fef (diff)
Merge "[COMMON] fix logic of post upgrade hook script to handle upgrade run without any changes to charts that could cause loss of all data."
Diffstat (limited to 'kubernetes/common/mariadb-galera/templates/job.yaml')
-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: