---
apiVersion: v1
data:
  postgres-ha.yaml: |2

    ---
    bootstrap:
      dcs:
        loop_wait: 10                                      # Added through SAS provided kustomize configMapGenerator
        ttl: 30                                            # Added through SAS provided kustomize configMapGenerator
        master_start_timeout: 0                            # Added through SAS provided kustomize configMapGenerator
        postgresql:
          parameters:
            archive_timeout: 60                            # Added through SAS provided kustomize configMapGenerator
    postgresql:
      pg_hba:
        - local all postgres peer
        - local all all trust
        - local all crunchyadm peer
        - hostssl replication primaryuser 0.0.0.0/0 scram-sha-256
        - hostssl all all 127.0.0.1/32 scram-sha-256
        - hostssl all all 0.0.0.0/0 scram-sha-256
kind: ConfigMap
metadata:
  annotations:
    sas.com/component-name: sas-crunchy-data-postgres-operator
    sas.com/component-version: 20.7.2-20210212.1613150000258
    sas.com/tls-enabled-ports: all
    sas.com/version: 20.7.2
  labels:
    sas.com/admin: cluster-local
    sas.com/deployment: sas-viya
  name: postgresql-custom
  namespace: viya-vdsd
