3a4462d8 by Adam Heath

Fix WALE backups, add WALE_STORAGE_CLASS.

1 parent 39600130
......@@ -3,8 +3,3 @@ kind: ConfigMap
metadata:
name: postgres-extra-config
---
apiVersion: v1
kind: Secret
metadata:
name: postgres-extra-config
---
......
......@@ -8,5 +8,7 @@ backup:
region: ""
endpoint: ""
sse: "AES256"
wale_endpoint: ""
wale:
endpoint: ""
storage_class: STANDARD
......
......@@ -18,16 +18,12 @@ releases:
name: postgres-extra-config
namespace: {{ .Values.namespace }}
data:
USE_WALE_BACKUP: "true"
AWS_ACCESS_KEY_ID: {{ .Values.backup.s3.access_key_id }}
WALE_S3_ENDPOINT: {{ .Values.backup.s3.wale_endpoint }}
- apiVersion: v1
kind: Secret
metadata:
name: postgres-extra-config
namespace: {{ .Values.namespace }}
stringData:
AWS_SECRET_ACCESS_KEY: {{ .Values.backup.s3.secret_access_key }}
AWS_REGION: {{ .Values.backup.s3.region }}
USE_WALE_BACKUP: "true"
WALE_S3_ENDPOINT: {{ .Values.backup.s3.wale.endpoint }}
WALE_S3_STORAGE_CLASS: {{ .Values.backup.s3.wale.storage_class }}
- name: postgres-operator
namespace: {{ .Values.namespace }}
......@@ -43,8 +39,6 @@ releases:
logical_backup_s3_secret_access_key: {{ .Values.backup.s3.secret_access_key }}
logical_backup_s3_sse: {{ .Values.backup.s3.sse }}
configAwsOrGcp:
aws_region: {{ .Values.backup.s3.region }}
wal_s3_bucket: {{ .Values.backup.s3.bucket }}
configKubernetes:
pod_environment_configmap: {{ .Values.namespace }}/postgres-extra-config
pod_environment_secret: {{ .Values.namespace }}/postgres-extra-config
......