rowanruseler / helm-charts

Curated applications for Kubernetes
Apache License 2.0
108 stars 120 forks source link

[pgadmin4] unable to set default email & password #205

Open krishnaTORQUE opened 1 year ago

krishnaTORQUE commented 1 year ago

Describe the bug Unable to set default email & password in pgadmin helm chart.

helm install pgadmin runix/pgadmin4 --set env.email="test@test.test" --set env.password="test-password"

Version of Helm and Kubernetes: helm: 3.12 kubernetes: 1.27

Which chart: pgadmin4

What happened: after set default email & password I am still unable to login into pgadmin. Showing error. invalid username & password

What you expected to happen: I should login without any error

How to reproduce it (as minimally and precisely as possible): I give a code snippet

Anything else we need to know: no

chronicc commented 1 year ago

I've hit the same problem.

This usually is related to an existing persistent volume from prior deployments. pgadmin4 stores the credentials on this persistent volume.

Please check if your cluster contains a <release-name>-admin-pgadmin4 persistent volume claim and delete this prior to deploying pgadmin with different credentials.

Changing credentials on the fly is something, that needs to be supported but seems to not be supported judging from the source code.