use dataCenter

This commit is contained in:
Konstantin Lebedev 2020-10-25 20:16:09 +05:00
parent 68c8d496d8
commit 37e282e9a7

View file

@ -35,7 +35,7 @@ spec:
- -c - -c
- | - |
set -ex set -ex
echo -e "lock\nvolume.balance -force -dataCenter {{ .Values.dataCenter }}\nvolume.fix.replication\nunlock\n" | \ echo -e "lock\nvolume.balance -force{{ if .Values.volume.dataCenter }} -dataCenter {{ .Values.volume.dataCenter }}{{ end }}\nvolume.fix.replication\nunlock\n" | \
/usr/bin/weed shell \ /usr/bin/weed shell \
{{- if .Values.cronjob.master }} {{- if .Values.cronjob.master }}
-master {{ .Values.cronjob.master }} \ -master {{ .Values.cronjob.master }} \