helmfile.yaml 1.69 KB
bases:
  - ../common/environments.yaml

repositories:
  - name: postgres-operator-charts
    url: https://opensource.zalando.com/postgres-operator/charts/postgres-operator

---

releases:
  - name: postgres-extra-config
    namespace: {{ .Values.namespace }}
    chart: charts/extra-config
    strategicMergePatches:
      - apiVersion: v1
        kind: ConfigMap
        metadata:
          name: postgres-extra-config
          namespace: {{ .Values.namespace }}
        data:
          AWS_ACCESS_KEY_ID: {{ .Values.backup.s3.access_key_id }}
          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 }}
    chart: postgres-operator-charts/postgres-operator
    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 }}
        configAwsOrGcp:
          wal_s3_bucket: {{ .Values.backup.s3.bucket }}
        configKubernetes:
          pod_environment_configmap: {{ .Values.namespace }}/postgres-extra-config