From 7266cec69c9b43988cd25a476296e75f98d872d9 Mon Sep 17 00:00:00 2001 From: shonge Date: Mon, 18 Nov 2019 15:39:33 +0800 Subject: [PATCH] fix tidb init-job timezone chart templates bug --- charts/tidb-cluster/templates/tidb-initializer-job.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/tidb-cluster/templates/tidb-initializer-job.yaml b/charts/tidb-cluster/templates/tidb-initializer-job.yaml index b05fe6eaaa..8eed84b723 100644 --- a/charts/tidb-cluster/templates/tidb-initializer-job.yaml +++ b/charts/tidb-cluster/templates/tidb-initializer-job.yaml @@ -28,12 +28,12 @@ spec: - -c - | {{ tuple "scripts/_initialize_tidb_users.py.tpl" . | include "helm-toolkit.utils.template" | indent 10 }} - volumeMounts: {{- if and (ne .Values.timezone "UTC") (ne .Values.timezone "") }} env: - name: TZ value: {{ .Values.timezone | default "UTC" }} {{- end }} + volumeMounts: - name: password mountPath: /etc/tidb/password readOnly: true