Skip to content

Commit

Permalink
tidb-backup: restore also binds pvc
Browse files Browse the repository at this point in the history
The restore job expects a PVC, but doesn't attempt to create the PVC in
restore mode.
  • Loading branch information
mightyguava committed Feb 14, 2020
1 parent 8d0ae9b commit b3e0d04
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions charts/tidb-backup/templates/backup-pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if (or (eq .Values.mode "backup") (eq .Values.mode "scheduled-restore")) }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
Expand All @@ -18,4 +17,3 @@ spec:
requests:
storage: {{ .Values.storage.size }}
storageClassName: {{ .Values.storage.className }}
{{- end }}

0 comments on commit b3e0d04

Please sign in to comment.