Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
postgresql-rclone
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c9da869d
authored
2023-01-26 18:10:39 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Expose more knobs on Cronjob/Job, move schedule into .job.
1 parent
f139f51a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
templates/job-backup.yaml
templates/job-restore.yaml
values.yaml
templates/job-backup.yaml
View file @
c9da869
...
...
@@ -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
:
...
...
templates/job-restore.yaml
View file @
c9da869
...
...
@@ -18,6 +18,7 @@ metadata:
labels
:
{{
- include "postgresql-rclone.labels" . | nindent 4
}}
spec
:
ttlSecondsAfterFinished
:
{{
.Values.restore.ttlSecondsAfterFinished
}}
template
:
spec
:
restartPolicy
:
OnFailure
...
...
values.yaml
View file @
c9da869
...
...
@@ -26,12 +26,18 @@ local:
backupKeepDays
:
288
backup
:
job
:
schedule
:
"
13
3
*
*
*"
startingDeadlineSeconds
:
3600
successfulJobsHistoryLimit
:
10
failedJobsHistoryLimit
:
10
pvc
:
storageClassName
:
"
"
size
:
10Gi
restore
:
job
:
ttlSecondsAfterFinished
:
120
pvc
:
storageClassName
:
"
"
size
:
10Gi
...
...
Please
register
or
sign in
to post a comment