Skip to content

Commit

Permalink
feat: allow passing postgresql username and password from secret as e…
Browse files Browse the repository at this point in the history
…nvironment variables separately

This allows the use of postgres-operator which provides the username and password as separate keys
  • Loading branch information
danielr1996 committed Jul 10, 2024
1 parent 9f55635 commit 8a0cd77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/vaultwarden/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
- name: guerzon
email: [email protected]
url: https://github.com/guerzon
version: 0.24.0
version: 0.24.1
kubeVersion: ">=1.12.0-0"
8 changes: 4 additions & 4 deletions charts/vaultwarden/templates/_podSpec.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ containers:
value: "true"
{{- end }}
{{- if and ( eq .Values.database.type "postgresql") (not .Values.database.existingSecretKey)}}
- name: PGHOST
value: {{ .Values.database.host }}
- name: DATABASE_URL
value: "postgresql://{{ .Values.database.host }}"
- name: PGPORT
value: {{ .Values.database.port }}
value: {{ .Values.database.port | quote }}
- name: PGDATABASE
value: {{ .Values.database.dbName }}
value: {{ .Values.database.dbName | quote }}
- name: PGUSER
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 8a0cd77

Please sign in to comment.