Skip to content

Commit

Permalink
Fix pgbouncer password override (#314)
Browse files Browse the repository at this point in the history
* fix: add passwordOverride support for pgbouncer secret

* Bump version to 0.69.1 for password handling fix

---------

Co-authored-by: Konstantin Petkov <[email protected]>
  • Loading branch information
KonstantinPetkov96 and kpetkovsee authored Feb 5, 2025
1 parent 408db7b commit 45be7b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/flagsmith/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: flagsmith
description: Flagsmith
type: application
version: 0.69.0
version: 0.69.1
appVersion: 2.159.0
dependencies:
- name: postgresql
Expand Down
4 changes: 4 additions & 0 deletions charts/flagsmith/templates/secrets-pgbouncer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ data:
POSTGRESQL_HOST: {{ $hostParts._0 | b64enc | quote }}
POSTGRESQL_DATABASE: {{ $urlParts.path | trimAll "/" | b64enc | quote }}
POSTGRESQL_USER: {{ $userParts._0 | b64enc | quote }}
{{- if .Values.pgbouncer.passwordOverride }}
POSTGRESQL_PASSWORD: {{ .Values.pgbouncer.passwordOverride | b64enc | quote }}
{{- else }}
POSTGRESQL_PASSWORD: {{ $userParts._1 | b64enc | quote }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/flagsmith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ pgbouncer:
imagePullSecrets: []
replicaCount: 1
deploymentStrategy: null
# Optional: Use to override the password directly instead of extracting from the database URL
passwordOverride: ""
podAnnotations: {}
resources: {}
podLabels: {}
Expand Down

0 comments on commit 45be7b3

Please sign in to comment.