AdWerx / charts

helm charts maintained by Adwerx Engineering
MIT License
25 stars 34 forks source link

The pod `web` not loaded with secret #24

Closed lesmyrmidons closed 3 years ago

lesmyrmidons commented 3 years ago

Hello!!

My postgesSQL is external.

I create a secret with version 3.2.0 of chart. And the pod web not started because it is error return : image

If the variable progresql host is not added, it's {{ printf "%s-postgresql" .Release.Name | b64enc | quote }} used but not DATABASE_HOST of my secret. My secret is generate with sealed-secret for bitnami :

sealed-secrets:
  - name: awx-secret
    data:
      AWX_ADMIN_PASSWORD:
      AWX_ADMIN_USER:
      DATABASE_ADMIN_PASSWORD:
      DATABASE_HOST:
      DATABASE_NAME:
      DATABASE_PASSWORD:
      DATABASE_PORT:
      DATABASE_USER:
      SECRET_KEY:
jbielick commented 3 years ago

Thanks for the issue report. Sorry you encountered this. I've pushed some changes and published as 3.2.1

https://github.com/AdWerx/charts/commit/b07443daaec98a163589f39de74b9620d8d2c3e7

credentials.py should now contain the correct data when using postgresqlExistingSecret. Please reopen if you have issues!