File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
operations/deployment/crunchy-postgres Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 87
87
- name : postgres
88
88
databases :
89
89
- {{ template "crunchy-postgres.fullname" . }}
90
+ {{- if .Values.postgres.extraUsers.enabled }}
91
+ {{- with .Values.postgres.extraUsers.users }}
92
+ {{- toYaml . | indent 2 }}
93
+ {{- end }}
94
+ {{- end }}
95
+
90
96
backups :
91
97
pgbackrest :
92
98
image : {{ .Values.pgbackrest.image }}
Original file line number Diff line number Diff line change @@ -34,6 +34,19 @@ crunchyImage: artifacts.developer.gov.bc.ca/bcgov-docker-local/crunchy-postgres:
34
34
# https://access.crunchydata.com/documentation/postgres-operator/v5/architecture/pgadmin4/
35
35
postgresVersion : 14
36
36
37
+ postgres :
38
+ # List that allows an undefined amount of new users to be created
39
+ # Be sure to changed the 'crunchy-postgres' database name if you changed the fullNameOverride variable
40
+ extraUsers :
41
+ enabled : false
42
+ users : |
43
+ - name: extra-user-1
44
+ databases:
45
+ - crunchy-postgres
46
+ options: "CREATEROLE"
47
+ - name: extra-user-2
48
+ databases:
49
+ - crunchy-postgres
37
50
# Postgres Cluster resource values:
38
51
pgmonitor :
39
52
enabled : false
You can’t perform that action at this time.
0 commit comments