Skip to content

Commit 2abe421

Browse files
authored
postgresql helm fix for already existing passwords (#3350)
1 parent a6b01ca commit 2abe421

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

helm/defectdojo/templates/secret-postgresql.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ metadata:
1414
helm.sh/hook-delete-policy: "before-hook-creation"
1515
type: Opaque
1616
data:
17-
{{- if .Values.postgresql.enabled }}
1817
{{- if .Values.postgresql.postgresqlPassword }}
1918
postgresql-postgres-password: {{ .Values.postgresql.postgresqlPassword | b64enc | quote }}
2019
{{ .Values.postgresql.secretKey }}: {{ .Values.postgresql.postgresqlPassword | b64enc | quote }}
@@ -23,12 +22,7 @@ data:
2322
postgresql-postgres-password: {{ $postgresRandomPassword }}
2423
{{ .Values.postgresql.secretKey }}: {{ $postgresRandomPassword }}
2524
{{- end }}
26-
{{- else }}
27-
{{- $postgresRandomPassword := randAlphaNum 16 | b64enc | quote }}
28-
postgresql-postgres-password: {{ $postgresRandomPassword }}
29-
{{ .Values.postgresql.secretKey }}: {{ $postgresRandomPassword }}
30-
{{- end }}
31-
# TODO: check if replicatio password in injected into the values
25+
# TODO: check if replication password in injected into the values
3226
{{ if .Values.postgresql.replication.enabled -}}
3327
{{- if .Values.postgresql.postgresqlReplicationPassword }}
3428
postgresql-replication-password : {{ .Values.postgresql.postgresqlReplicationPassword | b64enc | quote }}

0 commit comments

Comments
 (0)