helm-charts/charts/cnpg-cluster/templates/scheduledbackup.cnpg.yaml
devthejo 103cc957ca
Some checks failed
Mirror Sync / codeberg (push) Successful in 8s
🎉 Release Commit / create release using commit-and-tag-version (push) Has been cancelled
feat: cnpg-cluster
2024-07-19 00:47:26 +02:00

14 lines
423 B
YAML

{{- if .Values.backup.enabled }}
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: {{ include "cnpg-cluster.fullname" $ }}-scheduledbackup
labels:
{{- include "cnpg-cluster.labels" $ | nindent 4 }}
spec:
backupOwnerReference: self
cluster:
name: {{ include "cnpg-cluster.fullname" $ }}
schedule: "{{ .Values.backup.schedule }}"
immediate: {{ .Values.backup.immediate }}
{{- end }}