add options for tagging

This commit is contained in:
2024-09-27 21:27:01 -05:00
parent e5b1b733fe
commit 3ecef5f8d1
3 changed files with 19 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: postgres-cluster name: postgres-cluster
version: 3.9.0 version: 3.10.0
description: Chart for cloudnative-pg cluster description: Chart for cloudnative-pg cluster
keywords: keywords:
- database - database
@@ -10,4 +10,4 @@ sources:
maintainers: maintainers:
- name: alexlebens - name: alexlebens
icon: https://avatars.githubusercontent.com/u/100373852?s=48&v=4 icon: https://avatars.githubusercontent.com/u/100373852?s=48&v=4
appVersion: v1.23.3 appVersion: v1.24.0

View File

@@ -11,6 +11,14 @@ backup:
key: ca-bundle.crt key: ca-bundle.crt
{{- end }} {{- end }}
serverName: "{{ include "cluster.name" . }}-backup-{{ .Values.backup.backupIndex }}" serverName: "{{ include "cluster.name" . }}-backup-{{ .Values.backup.backupIndex }}"
tags:
{{- with .Values.backup.tags }}
{{- . | toYaml | nindent 6 }}
{{- end }}
historyTags:
{{- with .Values.backup.historyTags }}
{{- . | toYaml | nindent 6 }}
{{- end }}
s3Credentials: s3Credentials:
accessKeyId: accessKeyId:
name: {{ include "cluster.backupCredentials" . }} name: {{ include "cluster.backupCredentials" . }}

View File

@@ -174,6 +174,13 @@ backup:
# Name of the backup cluster in the object store, defaults to "cluster.name" # Name of the backup cluster in the object store, defaults to "cluster.name"
backupName: "" backupName: ""
# Tags to add to backups. Add in key value beneath the type.
tags:
backupRetentionPolicy: "expire"
historyTags:
backupRetentionPolicy: "keep"
# Configuration for the WAL and data files.
wal: wal:
# WAL compression method. One of `` (for no compression), `gzip`, `bzip2` or `snappy`. # WAL compression method. One of `` (for no compression), `gzip`, `bzip2` or `snappy`.
compression: snappy compression: snappy
@@ -190,7 +197,7 @@ backup:
jobs: 2 jobs: 2
# Retention policy for backups # Retention policy for backups
retentionPolicy: "30d" retentionPolicy: "60d"
# Scheduled backup in cron format # Scheduled backup in cron format
schedule: "0 0 0 * * *" schedule: "0 0 */3 * *"