-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to connect to Postgres DB when using existing secret #39
Comments
Are you able to submit a minimal reproduction of this issue? Just a values file and helm install command would probably do. At present, I cannot locate the source of the issue you're having and there are many variables to consider. For what it's worth, there's a passing test case here which asserts that the correct secret name is used to populate the charts/awx/test/unit/deployment.bats Lines 235 to 242 in 7713928
|
From looking at your test, I don't see where my secret would fail. One thing I need to note is I am deploying and running this chart from my ArgoCD Application definition so a minimal reproduction is a little different. But I will try. Essentially I am using the default values file, but passing parameters in to overwrite the values I need to change, specifically setting the postgresqlExistingSecret value to the name of my secret I have created in my cluster. An example of that secret would be as such: Once this secret is created and deployed I would think it could be reproduced by running the below helm install command: But for specificity sake, the exact parameters passed are these: |
I am trying to deploy this chart with using an existing secret for the DB connection info. However, the pod(s) will not start because of failing to connect for the 'postgres' user. When I look in the DB pod, I see a value written to the environment variables for a password for the DB user 'postgres' however it is not the password that is in my sealed secret. I have even attempted to override it using values from the bitnami/chart/values.yaml to know success. It seems the secret that keeps getting deployed to my namespace is the one created by the chart and does not contain the keys and values from my existing secret.
The text was updated successfully, but these errors were encountered: