From 0fc577ea6654f0e655f0a2d18694f7ebf1fcfde1 Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Thu, 5 Mar 2020 21:01:13 -0800 Subject: add gitsnapshot --- grumpy/gitsnapshot/templates/cronjob.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'grumpy/gitsnapshot/templates/cronjob.yaml') diff --git a/grumpy/gitsnapshot/templates/cronjob.yaml b/grumpy/gitsnapshot/templates/cronjob.yaml index 7bb7f0e..553a2ce 100644 --- a/grumpy/gitsnapshot/templates/cronjob.yaml +++ b/grumpy/gitsnapshot/templates/cronjob.yaml @@ -19,10 +19,15 @@ spec: template: spec: restartPolicy: Never + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 10 }} + {{- end }} containers: - name: {{ .Chart.Name }} command: - - /opt/app/gitbackup.sh + - gitsnap + - backup - /var/lib/git/repositories - privategit image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" -- cgit v1.2.3