905f53c9 by Adam Heath

Refactoring the pg-operator parameters.

1 parent 52741189
namespace: postgres-operator
backup:
logical:
provider: s3
sse: "AES256"
s3:
endpoint: ""
schedule: "00 12 * * *"
num_to_retain: "5"
s3:
......@@ -10,9 +14,5 @@ backup:
bucket: ""
region: ""
endpoint: ""
sse: "AES256"
walg:
disable_sse: false
endpoint: ""
storage_class: STANDARD
......
......@@ -44,13 +44,13 @@ releases:
disableValidation: true
values:
- configLogicalBackup:
logical_backup_provider: {{ .Values.backup.provider }}
logical_backup_s3_access_key_id: {{ .Values.backup.s3.access_key_id }}
logical_backup_s3_bucket: {{ .Values.backup.s3.bucket }}
logical_backup_s3_region: {{ .Values.backup.s3.region }}
logical_backup_s3_endpoint: {{ .Values.backup.s3.endpoint }}
logical_backup_s3_secret_access_key: {{ .Values.backup.s3.secret_access_key }}
logical_backup_s3_sse: {{ .Values.backup.s3.sse }}
logical_backup_provider: {{ .Values.backup.logical.provider }}
logical_backup_s3_endpoint: {{ .Values.backup | get "logical.s3.endpoint" ( .Values.backup | get "s3.endpoint" "" ) }}
logical_backup_s3_access_key_id: {{ .Values.backup | get "logical.s3.access_key_id" .Values.backup.s3.access_key_id }}
logical_backup_s3_secret_access_key: {{ .Values.backup | get "logical.s3.secret_access_key" .Values.backup.s3.secret_access_key }}
logical_backup_s3_bucket: {{ .Values.backup | get "logical.s3.bucket" .Values.backup.s3.bucket }}
logical_backup_s3_region: {{ .Values.backup | get "logical.s3.region" ( .Values.backup | get "s3.region" "" ) }}
logical_backup_s3_sse: {{ .Values.backup | get "logical.s3.sse" ( .Values.backup | get "s3.sse" "" ) }}
configAwsOrGcp:
wal_s3_bucket: {{ .Values.backup.s3.bucket }}
configKubernetes:
......