Skip to content

Commit

Permalink
fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
Song Gao committed Sep 17, 2019
1 parent 216ada6 commit aa8ba9a
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions charts/tidb-cluster/templates/tidb-initializer-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,33 @@ spec:
{{ tuple "scripts/_initialize_tidb_users.py.tpl" . | include "helm-toolkit.utils.template" | indent 10 }}
{{- if or .Values.tidb.passwordSecretName .Values.tidb.initSql }}
volumeMounts:
{{- if .Values.tidb.passwordSecretName }}
- name: password
mountPath: /etc/tidb/password
readOnly: true
{{- end }}
{{- if .Values.tidb.initSql }}
- name: init-sql
mountPath: /data
readOnly: true
{{- end }}
{{- end }}
resources:
{{ toYaml .Values.tidb.initializer.resources | indent 10 }}
{{- if or .Values.tidb.passwordSecretName .Values.tidb.initSql }}
volumes:
{{- if .Values.tidb.passwordSecretName }}
- name: password
mountPath: /etc/tidb/password
readOnly: true
secret:
secretName: {{ .Values.tidb.passwordSecretName }}
{{- end }}
{{- if .Values.tidb.initSql }}
- name: init-sql
mountPath: /data
readOnly: true
{{- end }}
configMap:
name: {{ template "cluster.name" . }}-tidb
items:
- key: init-sql
path: init.sql
{{- end }}
resources:
{{ toYaml .Values.tidb.initializer.resources | indent 10 }}
{{- if or .Values.tidb.passwordSecretName .Values.tidb.initSql }}
volumes:
{{- if .Values.tidb.passwordSecretName }}
- name: password
secret:
secretName: {{ .Values.tidb.passwordSecretName }}
{{- end }}
{{- if .Values.tidb.initSql }}
- name: init-sql
configMap:
name: {{ template "cluster.name" . }}-tidb
items:
- key: init-sql
path: init.sql
{{- end }}
{{- end }}
{{- end }}

0 comments on commit aa8ba9a

Please sign in to comment.