File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
22name : postgres
33description : The World's Most Advanced Open Source Relational Database
44type : application
5- version : 0.8.1
5+ version : 0.8.2
66appVersion : " 18.0"
77keywords :
88 - postgres
Original file line number Diff line number Diff line change 1717 {{- if and $existingSecret $existingSecret.data }}
1818 {{- $existingPostgresPassword = index $existingSecret.data "postgres-password" }}
1919 {{- end }}
20- postgres-password : {{ $existingPostgresPassword | default (.Values.auth.password | default (randAlphaNum 32) | b64enc) | quote }}
21- {{- end }}
20+ {{- $postgresPassword := $existingPostgresPassword | default (.Values.auth.password | default (randAlphaNum 32) | b64enc) }}
21+ {{- $host := printf "%s.%s.svc" (include "postgres.fullname" .) .Release.Namespace }}
22+ {{- $port := .Values.service.port | toString }}
23+ {{- $username := include "postgres.username" . }}
24+ {{- $database := include "postgres.database" . }}
25+ postgres-password : {{ $postgresPassword | quote }}
26+ host : {{ $host | b64enc | quote }}
27+ port : {{ $port | b64enc | quote }}
28+ username : {{ $username | b64enc | quote }}
29+ database : {{ $database | b64enc | quote }}
30+ uri : {{ printf "postgresql://%s:%s@%s:%s/%s" $username ($postgresPassword | b64dec) $host $port $database | b64enc | quote }}
31+ {{- end }}
You can’t perform that action at this time.
0 commit comments