Skip to content

Commit

Permalink
no ignore secret name
Browse files Browse the repository at this point in the history
  • Loading branch information
shuijing198799 committed Mar 19, 2020
1 parent 6aa0695 commit 7a61a56
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions charts/tidb-lightning/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ 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 @@ -127,11 +125,11 @@ spec:
items:
- key: config-file
path: rclone.conf
{{- else if .Values.dataSource.remote.secretName }}
{{ else }}
- name: credentials
secret:
secretName: {{ .Values.dataSource.remote.secretName }}
{{- end }}
{{ end -}}
- name: data
persistentVolumeClaim:
claimName: {{ include "tidb-lightning.name" . }}
Expand Down

0 comments on commit 7a61a56

Please sign in to comment.