diff --git a/restic/templates/cronjob_backup.yaml b/restic/templates/cronjob.yaml similarity index 100% rename from restic/templates/cronjob_backup.yaml rename to restic/templates/cronjob.yaml diff --git a/restic/templates/job_init.yaml b/restic/templates/pre-install-job.yaml similarity index 92% rename from restic/templates/job_init.yaml rename to restic/templates/pre-install-job.yaml index 68a0e662942616ceab03b74672f7f5b6a694c3da..09490b35653c65724491f68611f2f0075480d844 100644 --- a/restic/templates/job_init.yaml +++ b/restic/templates/pre-install-job.yaml @@ -2,6 +2,10 @@ apiVersion: batch/v1 kind: Job metadata: name: {{ include "restic-helm.fullname" . }} + annotations: + "helm.sh/hook": pre-install + "helm.sh/hook-weight": "-5" + "helm.sh/hook-delete-policy": hook-succeeded labels: {{- include "restic-helm.labels" . | nindent 4 }} spec: