Compare commits

...

4 Commits

Author SHA1 Message Date
2dfa733e49 fix recovery config
All checks were successful
release-charts-postgres-cluster / release (push) Successful in 17s
renovate / renovate (push) Successful in 40s
2025-10-02 21:35:57 -05:00
227c0db540 remove bool for backups
All checks were successful
release-charts-postgres-cluster / release (push) Successful in 20s
renovate / renovate (push) Successful in 40s
2025-10-02 21:20:46 -05:00
e09e2ba56f fix recovery credentials
All checks were successful
release-charts-postgres-cluster / release (push) Successful in 17s
renovate / renovate (push) Successful in 59s
2025-10-02 21:05:38 -05:00
bf18a84ea2 fix if statement 2025-10-02 21:04:09 -05:00
6 changed files with 16 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: postgres-cluster name: postgres-cluster
version: 6.6.2 version: 6.8.0
description: Cloudnative-pg Cluster description: Cloudnative-pg Cluster
keywords: keywords:
- database - database

View File

@@ -1,6 +1,6 @@
# postgres-cluster # postgres-cluster
![Version: 6.6.2](https://img.shields.io/badge/Version-6.6.2-informational?style=flat-square) ![AppVersion: v1.26.0](https://img.shields.io/badge/AppVersion-v1.26.0-informational?style=flat-square) ![Version: 6.8.0](https://img.shields.io/badge/Version-6.8.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 Cloudnative-pg Cluster
@@ -19,8 +19,7 @@ Cloudnative-pg Cluster
| Key | Type | Default | Description | | Key | Type | Default | Description |
|-----|------|---------|-------------| |-----|------|---------|-------------|
| backup | object | `{"enabled":false,"method":"objectStore","objectStore":[],"scheduledBackups":[]}` | Backup settings | | backup | object | `{"method":"objectStore","objectStore":[],"scheduledBackups":[]}` | Backup settings |
| backup.enabled | bool | `false` | You need to configure backups manually, so backups are disabled by default. |
| backup.method | string | `"objectStore"` | Method to create backups, options currently are only objectStore | | backup.method | string | `"objectStore"` | Method to create backups, options currently are only objectStore |
| backup.objectStore | list | `[]` | Options for object store backups | | backup.objectStore | list | `[]` | Options for object store backups |
| backup.scheduledBackups | list | `[]` | List of scheduled backups | | backup.scheduledBackups | list | `[]` | List of scheduled backups |

View File

@@ -19,7 +19,7 @@ spec:
{{- end }} {{- end }}
postgresUID: {{ include "cluster.postgresUID" . }} postgresUID: {{ include "cluster.postgresUID" . }}
postgresGID: {{ include "cluster.postgresGID" . }} postgresGID: {{ include "cluster.postgresGID" . }}
{{ if or (eq .Values.backup.method "objectStore") (eq .Values.recovery.method "objectStore") }} {{ if (eq .Values.backup.method "objectStore") }}
plugins: plugins:
{{ end }} {{ end }}
{{- range $objectStore := .Values.backup.objectStore }} {{- range $objectStore := .Values.backup.objectStore }}
@@ -35,9 +35,10 @@ spec:
{{- end }} {{- end }}
{{- end }} {{- end }}
{{ if eq .Values.recovery.method "objectStore" }} {{ if eq .Values.recovery.method "objectStore" }}
- name: barman-cloud.cloudnative-pg.io externalClusters:
enabled: true - name: recovery
isWALArchiver: false plugin:
name: barman-cloud.cloudnative-pg.io
parameters: parameters:
barmanObjectName: "{{ include "cluster.name" . }}-{{ .Values.recovery.objectStore.name }}" barmanObjectName: "{{ include "cluster.name" . }}-{{ .Values.recovery.objectStore.name }}"
serverName: {{ include "cluster.recoveryServerName" . }} serverName: {{ include "cluster.recoveryServerName" . }}

View File

@@ -1,4 +1,4 @@
{{ if and (.Values.backup.enabled) (eq .Values.backup.method "objectStore") }} {{ if (eq .Values.backup.method "objectStore") }}
{{ $context := . -}} {{ $context := . -}}
{{ range .Values.backup.objectStore -}} {{ range .Values.backup.objectStore -}}
--- ---
@@ -27,7 +27,7 @@ spec:
{{ end }} {{ end }}
maxParallel: {{ .wal.maxParallel | default "1" }} maxParallel: {{ .wal.maxParallel | default "1" }}
{{- end }} {{- end }}
{{- if .wal }} {{- if .data }}
data: data:
compression: {{ .data.compression | default "snappy" }} compression: {{ .data.compression | default "snappy" }}
{{- with .data.encryption }} {{- with .data.encryption }}
@@ -77,9 +77,9 @@ spec:
jobs: {{ .Values.recovery.objectStore.data.jobs }} jobs: {{ .Values.recovery.objectStore.data.jobs }}
s3Credentials: s3Credentials:
accessKeyId: accessKeyId:
name: {{ .Values.recovery.endpointCredentials | default (include "cluster.recoveryCredentials" .) }} name: {{ .Values.recovery.objectStore.endpointCredentials }}
key: ACCESS_KEY_ID key: ACCESS_KEY_ID
secretAccessKey: secretAccessKey:
name: {{ .Values.recovery.endpointCredentials | default (include "cluster.recoveryCredentials" .) }} name: {{ .Values.recovery.objectStore.endpointCredentials }}
key: ACCESS_SECRET_KEY key: ACCESS_SECRET_KEY
{{ end }} {{ end }}

View File

@@ -1,4 +1,3 @@
{{ if .Values.backup.enabled }}
{{ $context := . -}} {{ $context := . -}}
{{ range .Values.backup.scheduledBackups -}} {{ range .Values.backup.scheduledBackups -}}
--- ---
@@ -22,4 +21,3 @@ spec:
parameters: parameters:
barmanObjectName: "{{ include "cluster.name" $context }}-{{ .backupName }}-backup" barmanObjectName: "{{ include "cluster.name" $context }}-{{ .backupName }}-backup"
{{ end -}} {{ end -}}
{{ end }}

View File

@@ -417,9 +417,6 @@ recovery:
# -- Backup settings # -- Backup settings
backup: 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 to create backups, options currently are only objectStore
method: objectStore method: objectStore