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
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ spec:
- name: postgres
databases:
- {{ template "crunchy-postgres.fullname" . }}
{{- if .Values.postgres.extraUsers.enabled }}
{{- with .Values.postgres.extraUsers.users }}
{{- toYaml . | indent 2 }}
{{- end }}
{{- end }}

backups:
pgbackrest:
image: {{ .Values.pgbackrest.image }}
Expand Down
13 changes: 13 additions & 0 deletions operations/deployment/crunchy-postgres/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ crunchyImage: artifacts.developer.gov.bc.ca/bcgov-docker-local/crunchy-postgres:
# https://access.crunchydata.com/documentation/postgres-operator/v5/architecture/pgadmin4/
postgresVersion: 14

postgres:
# List that allows an undefined amount of new users to be created
# Be sure to changed the 'crunchy-postgres' database name if you changed the fullNameOverride variable
extraUsers:
enabled: false
users: |
- name: extra-user-1
databases:
- crunchy-postgres
options: "CREATEROLE"
- name: extra-user-2
databases:
- crunchy-postgres
# Postgres Cluster resource values:
pgmonitor:
enabled: false
Expand Down