aboutsummaryrefslogtreecommitdiff
path: root/grumpy/gitsnapshot/templates/cronjob.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'grumpy/gitsnapshot/templates/cronjob.yaml')
-rw-r--r--grumpy/gitsnapshot/templates/cronjob.yaml7
1 files changed, 6 insertions, 1 deletions
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 }}"