aboutsummaryrefslogtreecommitdiff
path: root/k8s
diff options
context:
space:
mode:
authorLazyDBA247-Anyvision <yonin@anyvision.co>2021-02-24 09:54:42 +0200
committerLazyDBA247-Anyvision <yonin@anyvision.co>2021-02-24 09:54:42 +0200
commit9d6b6a4aea50afe5f80b7c06f5647e39ad19ccff (patch)
tree88fd8943f34b18d98929ab5567030da213047079 /k8s
parent7ba75e3d5a4b059f4b41797f96a0feea97eef66a (diff)
downloadseaweedfs-9d6b6a4aea50afe5f80b7c06f5647e39ad19ccff.tar.xz
seaweedfs-9d6b6a4aea50afe5f80b7c06f5647e39ad19ccff.zip
add filter Pattern only if configured
Diffstat (limited to 'k8s')
-rw-r--r--k8s/seaweedfs/templates/cronjob.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/k8s/seaweedfs/templates/cronjob.yaml b/k8s/seaweedfs/templates/cronjob.yaml
index c7dcd52b1..4caf4bad1 100644
--- a/k8s/seaweedfs/templates/cronjob.yaml
+++ b/k8s/seaweedfs/templates/cronjob.yaml
@@ -40,7 +40,7 @@ spec:
{{ if .Values.volume.dataCenter }} -dataCenter {{ .Values.volume.dataCenter }}{{ end }}\
{{ if .Values.cronjob.collection }} -collection {{ .Values.cronjob.collection }}{{ end }}\n\
{{- if .Values.cronjob.enableFixReplication }}
- volume.fix.replication {{ if .Values.cronjob.collectionPattern }} -collectionPattern={{ .Values.cronjob.collectionPattern }} {{ end }} \n\
+ volume.fix.replication -collectionPattern={{ .Values.cronjob.collectionPattern }} \n\
{{- end }}
unlock\n" | \
/usr/bin/weed shell \