Skip to content

K8SPG-710: Add field to enable/disable backups #516

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

Open
wants to merge 2 commits into
base: pg-2.7.0
Choose a base branch
from
Open
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 @@ -126,6 +126,7 @@ The chart can be customized using the following configurable parameters:
| `instances.tablespaceVolumes.dataVolumeClaimSpec.accessModes` | The Kubernetes PersistentVolumeClaim access modes for the tablespace volume | `{}` |
| `instances.tablespaceVolumes.dataVolumeClaimSpec.resources.requests.storage` | The Kubernetes storage requests for the tablespace volume | `""` |
| |
| `backups.enabled` | Enable backups in PerconaPGCluster | `true` |
| `backups.trackLatestRestorableTime` | Enable background worker to track commit timestamps and set latest restorable time to latest successful backup | `true` |
| `backups.pgbackrest.metadata.labels` | Set labels for pgbackrest | `test-label:test` |
| `backups.pgbackrest.configuration` | Name of the Kubernetes Secret object with custom pgBackRest configuration, which will be added to the pgBackRest configuration generated by the Operator | `[]` |
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 @@ -365,6 +365,9 @@ spec:
postgresParams: {{ .Values.pmm.postgresParams}}

backups:
{{ if (hasKey .Values.backups "enabled") }}
enabled: {{ .Values.backups.enabled }}
{{- end }}
trackLatestRestorableTime: {{ .Values.backups.trackLatestRestorableTime }}
pgbackrest:
image: {{ .Values.backups.pgbackrest.image }}
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 @@ -333,6 +333,7 @@ proxy:
# pool_mode: transaction

backups:
enabled: true
trackLatestRestorableTime: true
pgbackrest:
# metadata:
Expand Down
Loading