Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shuijing198799 committed Mar 19, 2020
1 parent 9bb2aaf commit 6aa0695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/tidb-lightning/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ spec:
- |
{{ tuple "scripts/_start_data_retriever.sh.tpl" . | include "helm-toolkit.utils.template" | indent 10 }}
volumeMounts:
{{- if or .Values.dataSource.remote.rcloneConfig .Values.dataSource.remote.secretName}}
- name: credentials
mountPath: /etc/rclone
{{ end -}}
- name: data
mountPath: /data
{{ if and (ne .Values.timezone "UTC") (ne .Values.timezone "") }}
Expand Down Expand Up @@ -125,12 +127,10 @@ spec:
items:
- key: config-file
path: rclone.conf
{{ else }}
{{- else if .Values.dataSource.remote.secretName }}
- name: credentials
secret:
{{- if .Values.dataSource.remote.secretName}}
secretName: {{ .Values.dataSource.remote.secretName }}
{{- end }}
{{- end }}
- name: data
persistentVolumeClaim:
Expand Down

0 comments on commit 6aa0695

Please sign in to comment.