Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/external-db-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ For this, you need to set the following variables in `values.yaml`:
2. `externalDB.flavor` - a type of the DB management system; currently only `zalando` ([Zalando operator](https://postgres-operator.readthedocs.io/en/latest/)) is supported
3. `externalDB.secretName` - name of the secret with PostgreSQL credentials for Waldur user; should include `username` and `password` keys
4. `externalDB.serviceName` - name of the service linked to PostgreSQL master
5. `externalDB.passwordKey` - name of the key defining the PostgreSQL user's password; default: `password`

Zalando-managed PostgreSQL cluster example:

Expand Down
4 changes: 4 additions & 0 deletions waldur/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ Set postgres secret
Set postgres secret password key
*/}}
{{- define "waldur.postgresql.secret.passwordKey" -}}
{{- if .Values.externalDB.enabled -}}
{{ .Values.externalDB.passwordKey }}
{{- else -}}
"password"
{{- end -}}
{{- end -}}

{{/*
Set postgres database name
Expand Down
1 change: 1 addition & 0 deletions waldur/test/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ externalDB:
flavor: "zalando"
secretName: "waldur.waldur-testing-postgres.credentials.postgresql.acid.zalan.do"
serviceName: "waldur-testing-postgres"
passwordKey: "password"

postgresql:
enabled: true
Expand Down
1 change: 1 addition & 0 deletions waldur/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ externalDB:
flavor: "zalando"
secretName: "waldur.waldur.credentials.postgresql.acid.zalan.do"
serviceName: "waldur-postgres"
passwordKey: "password"

postgresql:
enabled: false
Expand Down