File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ externalClusters:
2020 plugin:
2121 name: barman-cloud.cloudnative -pg.io
2222 parameters:
23- barmanObjectName: {{ include " cluster.fullname" $ }}-object-store
23+ barmanObjectName: {{ .Values.recovery.objectStoreName | default ( printf " %s -object-store " ( include " cluster.fullname" . )) }}
2424 serverName: {{ .Values.recovery.clusterName | default (include " cluster.fullname" . ) }}
2525 {{- end }}
2626{{- else if eq .Values.mode " replica" }}
Original file line number Diff line number Diff line change 99 retentionPolicy : {{ . }}
1010 {{- end }}
1111 configuration :
12- {{- if and (eq .Values.mode "recovery") (eq .Values.recovery.method "object_store") -}}
12+ {{- if and (eq .Values.mode "recovery") (eq .Values.recovery.method "object_store") (empty .Values.recovery.objectStoreName) -}}
1313 {{- $d := dict "chartFullname" (include "cluster.fullname" .) "scope" .Values.recovery "secretPrefix" "recovery" -}}
1414 {{- include "cluster.barmanObjectStoreConfig" $d | indent 2 }}
1515 {{- else }}
Original file line number Diff line number Diff line change 1- {{- if and (eq .Values.mode "recovery" ) (eq .Values.recovery.method "object_store") (eq .Values.recovery.provider "s3") (not .Values.recovery.s3.inheritFromIAMRole) .Values.recovery.secret.create }}
1+ {{- if and (eq .Values.mode "recovery" ) (eq .Values.recovery.method "object_store") (empty .Values.recovery.objectStoreName) ( eq .Values.recovery.provider "s3") (not .Values.recovery.s3.inheritFromIAMRole) .Values.recovery.secret.create }}
22apiVersion : v1
33kind : Secret
44metadata :
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ recovery:
4949 # #
5050 # -- The original cluster name when used in backups. Also known as serverName.
5151 clusterName : " "
52+ # -- Name of an externally managed ObjectStore to use for recovery.
53+ # When set, the chart's own ObjectStore keeps backup credentials,
54+ # and the external cluster references this ObjectStore instead.
55+ objectStoreName : " "
5256 # -- Name of the database used by the application. Default: `app`.
5357 database : app
5458 # -- Name of the owner of the database in the instance to be used by applications. Defaults to the value of the `database` key.
You can’t perform that action at this time.
0 commit comments