aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/cassandra/templates
diff options
context:
space:
mode:
authorMarat Salakhutdinov <marat.salakhutdinov@bell.ca>2020-07-30 11:05:32 -0400
committerMarat Salakhutdinov <marat.salakhutdinov@bell.ca>2020-07-30 11:05:32 -0400
commit92154fbcc36e343f1efa689b3828263d081fbf85 (patch)
treedf9714399bb0a671a230f27aeeda758624c00b1e /kubernetes/common/cassandra/templates
parent3d0c1883d0cb220a29f97b923ba373a481ff0ca7 (diff)
Fix cassandra backup.
Issue-ID: OOM-2528 Signed-off-by: Marat Salakhutdinov <marat.salakhutdinov@bell.ca> Change-Id: I210cd4bd8e0edf363d37ab7fc4f9f47e018010be
Diffstat (limited to 'kubernetes/common/cassandra/templates')
-rw-r--r--kubernetes/common/cassandra/templates/backup/cronjob.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/kubernetes/common/cassandra/templates/backup/cronjob.yaml b/kubernetes/common/cassandra/templates/backup/cronjob.yaml
index e4f2aabfa0..f536be5053 100644
--- a/kubernetes/common/cassandra/templates/backup/cronjob.yaml
+++ b/kubernetes/common/cassandra/templates/backup/cronjob.yaml
@@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
*/}}
+{{- $global := . }}
{{- if .Values.backup.enabled }}
apiVersion: batch/v1beta1
kind: CronJob
@@ -52,7 +53,7 @@ spec:
image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
command:
- - /bin/bash
+ - /bin/sh
- -c
- |
clearSnapshot(){
@@ -237,7 +238,7 @@ spec:
{{- range $i := until (int .Values.replicaCount)}}
- name: data-dir-{{ $i }}
persistentVolumeClaim:
- claimName: {{ include "common.fullname" . }}-data-{{ $i }}
+ claimName: {{ include "common.fullname" $global }}-data-{{ include "common.fullname" $global }}-{{ $i }}
{{- end }}
- name: backup-dir
persistentVolumeClaim: