Skip to content

Commit 9a4723a

Browse files
authored
fix(helm): generate sqlConnectionSuperuser secret for external databases (#2297)
1 parent d2b7078 commit 9a4723a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helm/templates/config/secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ data:
3535
(include "agentstack.databaseName" .)
3636
| b64enc | quote
3737
}}
38-
{{- if and .Values.postgresql.enabled .Values.postgresql.auth.enablePostgresUser }}
38+
{{- if or (and .Values.postgresql.enabled .Values.postgresql.auth.enablePostgresUser) (and (not .Values.postgresql.enabled) .Values.externalDatabase.adminUser .Values.externalDatabase.adminPassword) }}
3939
sqlConnectionSuperuser: {{ printf "postgresql+asyncpg://%s:%s@%s:%s/%s"
4040
(include "agentstack.databaseAdminUser" .)
4141
(include "agentstack.databaseAdminPassword" .)

0 commit comments

Comments
 (0)