Skip to content

Commit

Permalink
tidb-backup: restore respects resource request and imagePullPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyguava committed Feb 14, 2020
1 parent 87f2acf commit c99a3f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/tidb-backup/templates/restore-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ spec:
containers:
- name: tidb-restore-job
image: {{ .Values.image.backup }}
imagePullPolicy: {{ .Values.image.pullPolicy | default "IfNotPresent" }}
{{- if .Values.resources }}
resources:
{{ toYaml .Values.resources | indent 10 }}
{{- end }}
command:
- /bin/sh
- -c
Expand Down

0 comments on commit c99a3f8

Please sign in to comment.