Skip to content
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

[bitnami/postgresql-ha] Chart does not work properly without setting pg credentials via values or using existingSecret #30105

Open
davidfrickert opened this issue Oct 28, 2024 · 1 comment · May be fixed by #30106
Assignees
Labels
postgresql-ha tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@davidfrickert
Copy link

davidfrickert commented Oct 28, 2024

Name and Version

bitnami/postgresql-ha 14.2.34

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Install postgresql-ha with the provided values
  2. Experience the postgres pod on a crash loop because POSTGRES_POSTGRES_PASSWORD is not passed to the pod

Are you using any custom parameters or values?

postgresql:
  replicaCount: 1
  database: keycloak
  username: keycloak
  initdbScripts:
    init.sql: |
      \connect keycloak;
      CREATE SCHEMA IF NOT EXISTS keycloak AUTHORIZATION keycloak;

What is the expected behavior?

When not setting an existingSecret or passing the password for postgres user in values, I expect that the chart generates a password and sets POSTGRES_POSTGRES_PASSWORD on the postgres pod so that it initializes properly.

What do you see instead?

When not setting an existingSecret or passing the password for postgres user in values, the chart generates a password for the postgres user but does not set POSTGRES_POSTGRES_PASSWORD on the postgres pod - so it crash loops.
This forces me to either set a credential for postgres user via values or use existingSecret, even though these secrets are generated properly if no credentials are passed via values.

@davidfrickert davidfrickert added the tech-issues The user has a technical issue about an application label Oct 28, 2024
@github-actions github-actions bot added the triage Triage is needed label Oct 28, 2024
@carrodher
Copy link
Member

Thank you for opening this issue and submitting the associated Pull Request. Our team will review and provide feedback. Once the PR is merged, the issue will automatically close.

Your contribution is greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
postgresql-ha tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
2 participants