diff --git a/charts/cluster/Chart.yaml b/charts/cluster/Chart.yaml index e96167f4f8..74352dc3f7 100644 --- a/charts/cluster/Chart.yaml +++ b/charts/cluster/Chart.yaml @@ -21,7 +21,7 @@ name: cluster description: Deploys and manages a CloudNativePG cluster and its associated resources. icon: https://raw.githubusercontent.com/cloudnative-pg/artwork/main/cloudnativepg-logo.svg type: application -version: 0.6.0 +version: 0.6.1 sources: - https://github.com/cloudnative-pg/charts keywords: diff --git a/charts/cluster/README.md b/charts/cluster/README.md index babd61bd96..6915827a58 100644 --- a/charts/cluster/README.md +++ b/charts/cluster/README.md @@ -1,6 +1,6 @@ # cluster -![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) +![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) > **Warning** > ### This chart is under active development. @@ -146,6 +146,7 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentati | backups.scheduledBackups[0].schedule | string | `"0 0 0 * * *"` | Schedule in cron format | | backups.secret.create | bool | `true` | Whether to create a secret for the backup credentials | | backups.secret.name | string | `""` | Name of the backup credentials secret | +| backups.target | string | `"prefer-standby"` | | | backups.wal.compression | string | `"gzip"` | WAL compression method. One of `` (for no compression), `gzip`, `bzip2` or `snappy`. | | 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`. | | backups.wal.maxParallel | int | `1` | Number of WAL files to be archived or restored in parallel. | @@ -360,3 +361,6 @@ TODO ---- * IAM Role for S3 Service Account * Automatic provisioning of a Alert Manager configuration + +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/cluster/templates/_backup.tpl b/charts/cluster/templates/_backup.tpl index 60270ea699..9be1363410 100644 --- a/charts/cluster/templates/_backup.tpl +++ b/charts/cluster/templates/_backup.tpl @@ -1,7 +1,7 @@ {{- define "cluster.backup" -}} {{- if .Values.backups.enabled }} backup: - target: "prefer-standby" + target: {{ .Values.backups.target }} retentionPolicy: {{ .Values.backups.retentionPolicy }} barmanObjectStore: wal: diff --git a/charts/cluster/values.schema.json b/charts/cluster/values.schema.json index 85645a49a7..97de8cd6c0 100644 --- a/charts/cluster/values.schema.json +++ b/charts/cluster/values.schema.json @@ -31,6 +31,9 @@ }, "storageSasToken": { "type": "string" + }, + "target": { + "type": "string" } } }, diff --git a/charts/cluster/values.yaml b/charts/cluster/values.yaml index 2c7e8b5c15..bcf4d20e79 100644 --- a/charts/cluster/values.yaml +++ b/charts/cluster/values.yaml @@ -417,6 +417,10 @@ backups: # -- You need to configure backups manually, so backups are disabled by default. enabled: false + ## -- Choose to take backups from either the primary or standby. + # One of: `prefer-standby` or `primary`. + target: "prefer-standby" + # -- Overrides the provider specific default endpoint. Defaults to: # S3: https://s3..amazonaws.com" endpointURL: "" # Leave empty if using the default S3 endpoint