From 70eb2ba8268bd7eb5bf0ea824887e1cea6cc7847 Mon Sep 17 00:00:00 2001 From: Yunchi Luo Date: Tue, 18 Feb 2020 13:36:45 -0500 Subject: [PATCH] fix tidb-lightning errors fixes for https://github.com/pingcap/tidb-operator/commit/9a3b1e27603dd28deac8dae43e34d21e1a678629 --- charts/tidb-lightning/templates/rclone-conf.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/charts/tidb-lightning/templates/rclone-conf.yaml b/charts/tidb-lightning/templates/rclone-conf.yaml index 77cf277ed6..90fc7b8672 100644 --- a/charts/tidb-lightning/templates/rclone-conf.yaml +++ b/charts/tidb-lightning/templates/rclone-conf.yaml @@ -1,10 +1,9 @@ +{{- if .Values.dataSource.remote.rcloneConfig }} apiVersion: v1 kind: ConfigMap metadata: name: rclone-{{ include "tidb-lightning.name" . }} -type: Opaque data: config-file: |- - {{- if .Values.dataSource.remote.rcloneConfig }} {{ .Values.dataSource.remote.rcloneConfig | indent 4 }} - {{- end -}} +{{- end }}