diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index 475b5f0..275de0f 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 6.6.4 +version: 6.7.0 description: Cloudnative-pg Cluster keywords: - database diff --git a/charts/postgres-cluster/README.md b/charts/postgres-cluster/README.md index 62739ff..0a28c8a 100644 --- a/charts/postgres-cluster/README.md +++ b/charts/postgres-cluster/README.md @@ -1,6 +1,6 @@ # postgres-cluster -![Version: 6.6.4](https://img.shields.io/badge/Version-6.6.4-informational?style=flat-square) ![AppVersion: v1.26.0](https://img.shields.io/badge/AppVersion-v1.26.0-informational?style=flat-square) +![Version: 6.7.0](https://img.shields.io/badge/Version-6.7.0-informational?style=flat-square) ![AppVersion: v1.26.0](https://img.shields.io/badge/AppVersion-v1.26.0-informational?style=flat-square) Cloudnative-pg Cluster @@ -19,8 +19,7 @@ Cloudnative-pg Cluster | Key | Type | Default | Description | |-----|------|---------|-------------| -| backup | object | `{"enabled":false,"method":"objectStore","objectStore":[],"scheduledBackups":[]}` | Backup settings | -| backup.enabled | bool | `false` | You need to configure backups manually, so backups are disabled by default. | +| backup | object | `{"method":"objectStore","objectStore":[],"scheduledBackups":[]}` | Backup settings | | backup.method | string | `"objectStore"` | Method to create backups, options currently are only objectStore | | backup.objectStore | list | `[]` | Options for object store backups | | backup.scheduledBackups | list | `[]` | List of scheduled backups | diff --git a/charts/postgres-cluster/templates/object-store.yaml b/charts/postgres-cluster/templates/object-store.yaml index 44a5f5d..829741e 100644 --- a/charts/postgres-cluster/templates/object-store.yaml +++ b/charts/postgres-cluster/templates/object-store.yaml @@ -1,4 +1,4 @@ -{{ if and (.Values.backup.enabled) (eq .Values.backup.method "objectStore") }} +{{ if (eq .Values.backup.method "objectStore") }} {{ $context := . -}} {{ range .Values.backup.objectStore -}} --- diff --git a/charts/postgres-cluster/templates/scheduled-backup.yaml b/charts/postgres-cluster/templates/scheduled-backup.yaml index 9b5679a..6e318f4 100644 --- a/charts/postgres-cluster/templates/scheduled-backup.yaml +++ b/charts/postgres-cluster/templates/scheduled-backup.yaml @@ -1,4 +1,3 @@ -{{ if .Values.backup.enabled }} {{ $context := . -}} {{ range .Values.backup.scheduledBackups -}} --- @@ -22,4 +21,3 @@ spec: parameters: barmanObjectName: "{{ include "cluster.name" $context }}-{{ .backupName }}-backup" {{ end -}} -{{ end }} diff --git a/charts/postgres-cluster/values.yaml b/charts/postgres-cluster/values.yaml index c566683..cde2a85 100644 --- a/charts/postgres-cluster/values.yaml +++ b/charts/postgres-cluster/values.yaml @@ -417,9 +417,6 @@ recovery: # -- Backup settings backup: - # -- You need to configure backups manually, so backups are disabled by default. - enabled: false - # -- Method to create backups, options currently are only objectStore method: objectStore