Skip to content

Commit 282456a

Browse files
committed
expose backups.target option
Signed-off-by: cloudymax <admin@cloudydev.net>
1 parent 011ce31 commit 282456a

5 files changed

Lines changed: 14 additions & 3 deletions

File tree

charts/cluster/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ name: cluster
2121
description: Deploys and manages a CloudNativePG cluster and its associated resources.
2222
icon: https://raw.githubusercontent.com/cloudnative-pg/artwork/main/cloudnativepg-logo.svg
2323
type: application
24-
version: 0.6.0
24+
version: 0.6.1
2525
sources:
2626
- https://github.com/cloudnative-pg/charts
2727
keywords:

charts/cluster/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cluster
22

3-
![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
3+
![Version: 0.6.1](https://img.shields.io/badge/Version-0.6.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
44

55
> **Warning**
66
> ### This chart is under active development.
@@ -146,6 +146,7 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentati
146146
| backups.scheduledBackups[0].schedule | string | `"0 0 0 * * *"` | Schedule in cron format |
147147
| backups.secret.create | bool | `true` | Whether to create a secret for the backup credentials |
148148
| backups.secret.name | string | `""` | Name of the backup credentials secret |
149+
| backups.target | string | `"prefer-standby"` | |
149150
| backups.wal.compression | string | `"gzip"` | WAL compression method. One of `` (for no compression), `gzip`, `bzip2` or `snappy`. |
150151
| backups.wal.encryption | string | `"AES256"` | Whether to instruct the storage provider to encrypt WAL files. One of `` (use the storage container default), `AES256` or `aws:kms`. |
151152
| backups.wal.maxParallel | int | `1` | Number of WAL files to be archived or restored in parallel. |
@@ -360,3 +361,6 @@ TODO
360361
----
361362
* IAM Role for S3 Service Account
362363
* Automatic provisioning of a Alert Manager configuration
364+
365+
----------------------------------------------
366+
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)

charts/cluster/templates/_backup.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- define "cluster.backup" -}}
22
{{- if .Values.backups.enabled }}
33
backup:
4-
target: "prefer-standby"
4+
target: {{ .Values.backups.target }}
55
retentionPolicy: {{ .Values.backups.retentionPolicy }}
66
barmanObjectStore:
77
wal:

charts/cluster/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
},
3232
"storageSasToken": {
3333
"type": "string"
34+
},
35+
"target": {
36+
"type": "string"
3437
}
3538
}
3639
},

charts/cluster/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,10 @@ backups:
417417
# -- You need to configure backups manually, so backups are disabled by default.
418418
enabled: false
419419

420+
## -- Choose to take backups from either the primary or standby.
421+
# One of: `prefer-standby` or `primary`.
422+
target: "prefer-standby"
423+
420424
# -- Overrides the provider specific default endpoint. Defaults to:
421425
# S3: https://s3.<region>.amazonaws.com"
422426
endpointURL: "" # Leave empty if using the default S3 endpoint

0 commit comments

Comments
 (0)