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 }}