Skip to content

Commit

Permalink
fix: cnpg recovery name (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo authored Sep 18, 2023
1 parent e2f23b1 commit 7f43129
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion plugins/fabrique/charts/pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ backup:
# to override the backup destination path (in case we need a new destination for a new cluster)
name: ""

recovery:
enabled: false
# to override the backup destination path (in case we need to target a cluster that was named)
name: ""
serverName: ""


cnpg-cluster:
enabled: true
fullnameOverride: test-cluster
Expand Down Expand Up @@ -64,7 +71,8 @@ cnpg-cluster:

recovery:
barmanObjectStore:
~tpl~destinationPath: "s3://{{ .Values.global.projectName }}-{{ .Values.global.isProd | ternary `prod` `dev` }}-backups/{{ .Values.global.namespace }}{{ (ne .Values.Parent.backup.name ``) | ternary (print `-` .Values.Parent.backup.name) `` }}"
~tpl~serverName: "{{ (or .Values.recovery.serverName .Values.component .Chart.Name) | lower }}"
~tpl~destinationPath: "s3://{{ .Values.global.projectName }}-{{ .Values.global.isProd | ternary `prod` `dev` }}-backups/{{ .Values.global.namespace }}{{ (ne .Values.Parent.recovery.name ``) | ternary (print `-` .Values.Parent.recovery.name) `` }}"
~tpl~endpointURL: "{{ .Values.global.pgBackupEndpointURL }}"
wal:
compression: gzip
Expand Down

0 comments on commit 7f43129

Please sign in to comment.