File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ metadata:
8
8
annotations :
9
9
" helm.sh/hook " : pre-install
10
10
data : {{ if eq .Values.global.database_location "on-cluster"}}
11
- user : {{ randAlphaNum 32 | b64enc }}
12
- password : {{ randAlphaNum 32 | b64enc }}{{ else if eq .Values.global.database_location "off-cluster"}}
11
+ user : {{ if .Values.username | default "" | ne "" }}{{ .Values.username | b64enc }}{{ else }}{{ randAlphaNum 32 | b64enc }}{{ end }}
12
+ password : {{ if .Values.password | default "" | ne "" }}{{ .Values.password | b64enc }}{{ else }}{{ randAlphaNum 32 | b64enc }}{{ end }}{{ else if eq .Values.global.database_location "off-cluster"}}
13
13
user : {{ .Values.postgres.username | b64enc }}
14
14
password : {{ .Values.postgres.password | b64enc }}
15
15
name : {{ .Values.postgres.name | b64enc }}
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ pull_policy: "Always"
3
3
docker_tag : canary
4
4
# limits_cpu: "100m"
5
5
# limits_memory: "50Mi"
6
+ # The username and password to be used by the on-cluster database.
7
+ # If left empty they will be generated using randAlphaNum
8
+ username : " "
9
+ password : " "
6
10
7
11
postgres :
8
12
name : " database name"
You can’t perform that action at this time.
0 commit comments