diff --git a/restic/templates/cronjob.yaml b/restic/templates/cronjob.yaml index 1924551f4a9f59eed03b3d22d65a5a66a8d6896e..f530ad51df0acc459186757ea4b4128d8f23b074 100644 --- a/restic/templates/cronjob.yaml +++ b/restic/templates/cronjob.yaml @@ -41,8 +41,6 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: - - "-r" - - "{{ .Values.repository.name }}" - "forget" - "--prune" {{- toYaml .Values.keepOptions | nindent 16 }} @@ -59,8 +57,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} workingDir: "/sync" args: - - "-r" - - "{{ .Values.repository.name }}" - "backup" - "." envFrom: diff --git a/restic/templates/post-install-job.yaml b/restic/templates/post-install-job.yaml index 347202aa3d178d72270c7d675ab695e2b2b1f55e..e21e17eb5c2efdba6c602b5d5acd105acb2ce10c 100644 --- a/restic/templates/post-install-job.yaml +++ b/restic/templates/post-install-job.yaml @@ -31,11 +31,11 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} - workingDir: "/sync" + command: + - "/bin/sh" + - "-c" args: - - "-r" - - "{{ .Values.repository.name }}" - - "init" + - "restic cat config || restic init" envFrom: - secretRef: name: {{ include "restic-helm.fullname" . }}