From a42d641c8fc73aa70fcbcddf3724d71635dcdfd4 Mon Sep 17 00:00:00 2001 From: DanielZhangQD Date: Tue, 27 Aug 2019 20:36:52 +0800 Subject: [PATCH] fix ad-hoc full backup failure due to incorrect claimName --- charts/tidb-backup/templates/backup-job.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/tidb-backup/templates/backup-job.yaml b/charts/tidb-backup/templates/backup-job.yaml index 1d6beda663..f2867e3221 100644 --- a/charts/tidb-backup/templates/backup-job.yaml +++ b/charts/tidb-backup/templates/backup-job.yaml @@ -45,7 +45,7 @@ spec: {{- end }} env: - name: BACKUP_NAME - value: {{ .Values.name | quote }} + value: {{ tpl .Values.name . | quote }} {{- if .Values.gcp }} - name: GOOGLE_APPLICATION_CREDENTIALS value: /gcp/credentials.json @@ -76,7 +76,7 @@ spec: volumes: - name: data persistentVolumeClaim: - claimName: {{ .Values.name }} + claimName: {{ tpl .Values.name . }} {{- if .Values.gcp }} - name: gcp-credentials secret: