apiVersion: v1
kind: ConfigMap
metadata:
  name: db-maintain-manila
  labels:
    system: openstack
    type: configuration
    component: database

data:
  db-maintaine.sh: |
    #!/usr/bin/env bash

    data_dir=/postgresql-data/data

    cp /postgresql-conf/postgresql.conf  $data_dir/postgresql.conf
    cp /postgresql-conf/pg-hba.conf  $data_dir/pg_hba.conf

    export PGUSER=postgres
    psql <<- EOSQL

        ALTER ROLE {{.Values.db_user}} WITH ENCRYPTED PASSWORD '{{.Values.db_password}}';
        ALTER ROLE {{.Values.postgres.user}} WITH ENCRYPTED PASSWORD '{{.Values.postgres.password}}';

    EOSQL




apiVersion: v1
kind: ConfigMap
metadata:
  name: db-maintain-manila
  labels:
    system: openstack
    type: configuration
    component: database

data:
  db-maintain.sh: |
    #!/usr/bin/env bash

    data_dir=/postgresql-data/data

    cp /postgresql-conf/postgresql.conf  $data_dir/postgresql.conf
    cp /postgresql-conf/pg-hba.conf  $data_dir/pg_hba.conf

    export PGUSER=postgres
    psql <<- EOSQL

        ALTER ROLE {{.Values.db_user}} WITH ENCRYPTED PASSWORD '{{.Values.db_password}}';
        ALTER ROLE {{.Values.postgres.user}} WITH ENCRYPTED PASSWORD '{{.Values.postgres.password}}';

    EOSQL




Fix typo in config map entry
Fix typo in config map entry
