summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-10-15 07:21:51 +0000
committerGerrit Code Review <gerrit@onap.org>2020-10-15 07:21:51 +0000
commit017ccc04e3d54dfff43e66c5e5d3b44bbf11a31b (patch)
tree00e00f969107433cb56e0a9d68463f7a7a70b62a
parent9e8c6de3d71df6f7ed4338d935e9e1dcfe7ac06a (diff)
parentbc10e22452b0d073ac65d014137684bd112a4e55 (diff)
Merge "[COMMON] More generic Cassandra backup"
-rw-r--r--kubernetes/common/cassandra/templates/backup/cronjob.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/kubernetes/common/cassandra/templates/backup/cronjob.yaml b/kubernetes/common/cassandra/templates/backup/cronjob.yaml
index 1d1e4594da..cabe59f696 100644
--- a/kubernetes/common/cassandra/templates/backup/cronjob.yaml
+++ b/kubernetes/common/cassandra/templates/backup/cronjob.yaml
@@ -59,7 +59,7 @@ spec:
curr_time=$1
echo "Clearing snapshots!!!"
command="nodetool clearsnapshot -t $curr_time"
- /app/exec.py -p "cassandra" -c "$command"
+ /app/exec.py -p "{{ include "common.name" . }}" -c "$command"
}
{{ $root := . }}
curr_time=`date +%s`
@@ -75,11 +75,11 @@ spec:
echo "Executing cleanup!!"
command="nodetool cleanup"
- /app/exec.py -p "cassandra" -c "$command"
+ /app/exec.py -p "{{ include "common.name" . }}" -c "$command"
echo "Cleaned Node!! Backing up database now!!!"
command="nodetool snapshot -t $curr_time"
- /app/exec.py -p "cassandra" -c "$command"
+ /app/exec.py -p "{{ include "common.name" . }}" -c "$command"
retCode=$?
if [ $retCode -ne 0 ]; then
echo "Backup Failed!!!"