Title
#general
g

Gurpal Singh

09/08/2022, 4:30 PM
fyi, using the latest chart for the cloud pricing api. i get an error when supplying a secret as the postgresql password. error is
Error: couldn't find key postgresql-postgres-password in Secret mynamespace/infracost-postgresql
so i added
postgresql-postgres-password
as a key and removed
postgresql-password
. then the error changes to:
Error: couldn't find key postgresql-password in Secret atlantis/infracost-postgresql
then i added
postgresql-password
as another key in the same secret, and the error disappeared. so my secret now looks like the attached:
5:02 PM
cc: @Alistair (Infracost)
Alistair (Infracost)

Alistair (Infracost)

09/08/2022, 5:12 PM
hmm
postgresql-password
is what we use. I know the bitnami chart we use uses
postgresql-postgres-password
as well as
postgresql-password
for setting the admin (postgres user) password which it looks like it’s requiring if a secret is passed and the username is not “postgres”.
5:13 PM
I’m not sure if there’s a way we can get round requiring both, but will have a look. If not, then I think we just need to document it better.
g

Gurpal Singh

09/08/2022, 5:13 PM
👍