From 1fcf54751a03ffd3fc819ae1721a53241a81e4c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Je=C5=BEek?= Date: Thu, 5 Mar 2026 16:37:53 +0100 Subject: [PATCH] fix(helm): generate sqlConnectionSuperuser secret for external databases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using an external database with adminUser/adminPassword configured, the sqlConnectionSuperuser key was not being added to the secret. This caused the createVectorDbExtension init container to fail with "couldn't find key sqlConnectionSuperuser in Secret". The condition now also generates the superuser connection string when using an external database with admin credentials provided. Signed-off-by: Radek Ježek --- helm/templates/config/secret.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/templates/config/secret.yaml b/helm/templates/config/secret.yaml index 208a6dadcc..ef255a2f29 100644 --- a/helm/templates/config/secret.yaml +++ b/helm/templates/config/secret.yaml @@ -35,7 +35,7 @@ data: (include "agentstack.databaseName" .) | b64enc | quote }} - {{- if and .Values.postgresql.enabled .Values.postgresql.auth.enablePostgresUser }} + {{- if or (and .Values.postgresql.enabled .Values.postgresql.auth.enablePostgresUser) (and (not .Values.postgresql.enabled) .Values.externalDatabase.adminUser .Values.externalDatabase.adminPassword) }} sqlConnectionSuperuser: {{ printf "postgresql+asyncpg://%s:%s@%s:%s/%s" (include "agentstack.databaseAdminUser" .) (include "agentstack.databaseAdminPassword" .)