diff options
| author | LazyDBA247-Anyvision <yonin@anyvision.co> | 2021-02-09 10:07:25 +0200 |
|---|---|---|
| committer | LazyDBA247-Anyvision <yonin@anyvision.co> | 2021-02-09 10:07:25 +0200 |
| commit | b373c1de93ab172ca8f0c3b15329ccea74f5b3c9 (patch) | |
| tree | 181460bdbd6b07d7ca5c506cbe291858f4d8e978 | |
| parent | 259c66d978f7d296325fcc20ab7eceb127c377c8 (diff) | |
| download | seaweedfs-b373c1de93ab172ca8f0c3b15329ccea74f5b3c9.tar.xz seaweedfs-b373c1de93ab172ca8f0c3b15329ccea74f5b3c9.zip | |
remove collectionPattern if is empty string / null
| -rw-r--r-- | k8s/seaweedfs/templates/cronjob.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/k8s/seaweedfs/templates/cronjob.yaml b/k8s/seaweedfs/templates/cronjob.yaml index 4caf4bad1..c7dcd52b1 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 -collectionPattern={{ .Values.cronjob.collectionPattern }} \n\ + volume.fix.replication {{ if .Values.cronjob.collectionPattern }} -collectionPattern={{ .Values.cronjob.collectionPattern }} {{ end }} \n\ {{- end }} unlock\n" | \ /usr/bin/weed shell \ |
