diff --git a/charts/pg-db/README.md b/charts/pg-db/README.md index 25ca2676..d03c6bf7 100644 --- a/charts/pg-db/README.md +++ b/charts/pg-db/README.md @@ -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` | diff --git a/charts/pg-db/templates/cluster.yaml b/charts/pg-db/templates/cluster.yaml index f9aeb8f0..7509ecac 100644 --- a/charts/pg-db/templates/cluster.yaml +++ b/charts/pg-db/templates/cluster.yaml @@ -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 }} diff --git a/charts/pg-db/values.yaml b/charts/pg-db/values.yaml index 20e9f58f..89ac9a6e 100644 --- a/charts/pg-db/values.yaml +++ b/charts/pg-db/values.yaml @@ -447,6 +447,7 @@ backups: repoName: repo1 options: - --type=full +# initialDelaySeconds: 120 repos: - name: repo1 schedules: