Skip to content

K8SPG-615: Add initialDelaySeconds for backups #522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/pg-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ The chart can be customized using the following configurable parameters:
| `backups.pgbackrest.repoHost.securityContext` | The Kubernetes Pod security context for pgBackRest repo | `{}` |
| `backups.pgbackrest.manual.repoName` | Name of the pgBackRest repository for on-demand backups | `repo1` |
| `backups.pgbackrest.manual.options` | The on-demand backup command-line options which will be passed to pgBackRest for on-demand backups | `--type=full` |
| `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` |
| `backups.pgbackrest.repos.repo1.name` | Name of the pgBackRest repository for backups | `repo1` |
| `backups.pgbackrest.repos.repo1.schedules.full` | Scheduled time to make a full backup specified in the crontab format | `0 0 \* \* 6` |
| `backups.pgbackrest.repos.repo1.schedules.differential` | Scheduled time to make a differential backup specified in the crontab format | `0 0 \* \* 6` |
Expand Down
3 changes: 3 additions & 0 deletions charts/pg-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ spec:
{{- range .Values.backups.pgbackrest.manual.options }}
- {{ . }}
{{- end }}
{{ if hasKey .Values.backups.pgbackrest.manual "initialDelaySeconds" }}
initialDelaySeconds: {{ .Values.backups.pgbackrest.manual.initialDelaySeconds }}
{{- end}}
repos:
{{- range $repo := .Values.backups.pgbackrest.repos }}
- name: {{ $repo.name }}
Expand Down
1 change: 1 addition & 0 deletions charts/pg-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ backups:
repoName: repo1
options:
- --type=full
# initialDelaySeconds: 120
repos:
- name: repo1
schedules:
Expand Down
Loading