Skip to content

Commit

Permalink
lightning: support lightning use IAM (#1975)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuijing198799 authored Mar 19, 2020
1 parent 3221f5a commit d1afdab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/tidb-lightning/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
{{ toYaml .Values.annotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.serviceAccount }}
serviceAccountName: {{ .Values.serviceAccount }}
{{- end }}
{{ if and .Values.dataSource.local.hostPath .Values.dataSource.local.nodeName -}}
nodeName: {{ .Values.dataSource.local.nodeName }}
{{ else if not .Values.dataSource.adhoc.pvcName -}}
Expand Down
3 changes: 3 additions & 0 deletions charts/tidb-lightning/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ affinity: {}

backend: importer # importer | tidb

# Specify a Service Account for lightning
# serviceAccount:

config: |
[lightning]
level = "info"

0 comments on commit d1afdab

Please sign in to comment.