Skip to content

Commit 13f4bc6

Browse files
authored
K8SPG-615: Add initialDelaySeconds for backups (#522)
1 parent bbc3fa0 commit 13f4bc6

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Diff for: charts/pg-db/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ The chart can be customized using the following configurable parameters:
167167
| `backups.pgbackrest.repoHost.securityContext` | The Kubernetes Pod security context for pgBackRest repo | `{}` |
168168
| `backups.pgbackrest.manual.repoName` | Name of the pgBackRest repository for on-demand backups | `repo1` |
169169
| `backups.pgbackrest.manual.options` | The on-demand backup command-line options which will be passed to pgBackRest for on-demand backups | `--type=full` |
170+
| `backups.pgbackrest.manual.initialDelaySeconds` | Number of seconds to wait before starting the backup. After the backup pod is scheduled, its entrypoint will wait for this number of seconds before initiating the backup process. | `0` |
170171
| `backups.pgbackrest.repos.repo1.name` | Name of the pgBackRest repository for backups | `repo1` |
171172
| `backups.pgbackrest.repos.repo1.schedules.full` | Scheduled time to make a full backup specified in the crontab format | `0 0 \* \* 6` |
172173
| `backups.pgbackrest.repos.repo1.schedules.differential` | Scheduled time to make a differential backup specified in the crontab format | `0 0 \* \* 6` |

Diff for: charts/pg-db/templates/cluster.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,9 @@ spec:
444444
{{- range .Values.backups.pgbackrest.manual.options }}
445445
- {{ . }}
446446
{{- end }}
447+
{{ if hasKey .Values.backups.pgbackrest.manual "initialDelaySeconds" }}
448+
initialDelaySeconds: {{ .Values.backups.pgbackrest.manual.initialDelaySeconds }}
449+
{{- end}}
447450
repos:
448451
{{- range $repo := .Values.backups.pgbackrest.repos }}
449452
- name: {{ $repo.name }}

Diff for: charts/pg-db/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ backups:
447447
repoName: repo1
448448
options:
449449
- --type=full
450+
# initialDelaySeconds: 120
450451
repos:
451452
- name: repo1
452453
schedules:

0 commit comments

Comments
 (0)