c9da869d by Adam Heath

Expose more knobs on Cronjob/Job, move schedule into .job.

1 parent f139f51a
......@@ -18,11 +18,11 @@ metadata:
labels:
{{- include "postgresql-rclone.labels" . | nindent 4 }}
spec:
schedule: {{ .Values.backup.schedule }}
startingDeadlineSeconds: 3600
schedule: {{ .Values.backup.job.schedule }}
startingDeadlineSeconds: {{ .Values.backup.job.startingDeadlineSeconds }}
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 10
failedJobsHistoryLimit: 10
successfulJobsHistoryLimit: {{ .Values.backup.job.successfulJobsHistoryLimit }}
failedJobsHistoryLimit: {{ .Values.backup.job.failedJobsHistoryLimit }}
jobTemplate:
spec:
template:
......
......@@ -18,6 +18,7 @@ metadata:
labels:
{{- include "postgresql-rclone.labels" . | nindent 4 }}
spec:
ttlSecondsAfterFinished: {{ .Values.restore.ttlSecondsAfterFinished }}
template:
spec:
restartPolicy: OnFailure
......
......@@ -26,12 +26,18 @@ local:
backupKeepDays: 288
backup:
schedule: "13 3 * * *"
job:
schedule: "13 3 * * *"
startingDeadlineSeconds: 3600
successfulJobsHistoryLimit: 10
failedJobsHistoryLimit: 10
pvc:
storageClassName: ""
size: 10Gi
restore:
job:
ttlSecondsAfterFinished: 120
pvc:
storageClassName: ""
size: 10Gi
......