I am trying to add my own pg_hba.conf file when installing PostgreSQL using bitnamis helm chart, but it seems I am installing it the wrong way. I have tried using --set, used values.yaml file and ConfigMap but everytime the default pg_hba.conf is installed.
When I install it with
helm install postgresql . --namespace baz --set global.postgresql.auth.username="foo" --set global.postgresql.auth.database="bar"the user and database is installed. Installing with values.yaml also installs user and db.
helm install postgresql . --namespace bazglobal: postgresql: auth: username: "foo" database: "bar"But when I try to add my own pg_hba.conf it is not added. This is just an example.
primary: configuration: pgHbaConfiguration: |- local all all trust local replication all trust host replication all 127.0.0.1/32 trust host replication all ::1/128 trustmk logs --tail=100 --namespace baz postgresql-0postgresql 22:12:50.94 INFO ==>postgresql 22:12:50.94 INFO ==> Welcome to the Bitnami postgresql containerpostgresql 22:12:50.94 INFO ==> Subscribe to project updates by watching https://github.com/bitnami/containerspostgresql 22:12:50.94 INFO ==> Submit issues and feature requests at https://github.com/bitnami/containers/issuespostgresql 22:12:50.94 INFO ==>postgresql 22:12:50.95 INFO ==> ** Starting PostgreSQL setup **postgresql 22:12:50.96 INFO ==> Validating settings in POSTGRESQL_* env vars..postgresql 22:12:50.96 INFO ==> Loading custom pre-init scripts...postgresql 22:12:50.96 INFO ==> Initializing PostgreSQL database...postgresql 22:12:50.97 INFO ==> pg_hba.conf file not detected. Generating it...I also tried to use a ConfigMap as suggested here but it still created a default pg_hba.conf file.