Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "[CONSUL] Add limits to consul chart."
[oom.git]
/
kubernetes
/
common
/
cassandra
/
templates
/
backup
/
cronjob.yaml
diff --git
a/kubernetes/common/cassandra/templates/backup/cronjob.yaml
b/kubernetes/common/cassandra/templates/backup/cronjob.yaml
index
1d1e459
..
b242de2
100644
(file)
--- 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"
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`
}
{{ $root := . }}
curr_time=`date +%s`
@@
-75,11
+75,11
@@
spec:
echo "Executing cleanup!!"
command="nodetool cleanup"
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"
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!!!"
retCode=$?
if [ $retCode -ne 0 ]; then
echo "Backup Failed!!!"
@@
-149,7
+149,7
@@
spec:
subPath: exec.py
containers:
- name: cassandra-backup-validate
subPath: exec.py
containers:
- name: cassandra-backup-validate
- image: "{{ .Values.image }}"
+ image: "{{
include "common.repository" . }}/{{
.Values.image }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
command:
- /bin/bash
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
command:
- /bin/bash