From 1e433fbf0228f8c090263c2b4825c38881e60d99 Mon Sep 17 00:00:00 2001 From: sho-equativ Date: Fri, 6 Dec 2024 19:36:12 +0100 Subject: [PATCH] ASRE-550: Fix _database/tpl with password and user --- charts/airbyte/templates/_database.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/airbyte/templates/_database.tpl b/charts/airbyte/templates/_database.tpl index fd0e5ef8736..ab08bf8607b 100644 --- a/charts/airbyte/templates/_database.tpl +++ b/charts/airbyte/templates/_database.tpl @@ -207,11 +207,11 @@ Renders all of the common environment variables which provide database credentia Renders a set of database secrets to be included in the shared Airbyte secret */}} {{- define "airbyte.database.secrets" }} -{{ $user := (include "airbyte.database.user" .)}} +{{ $user := (include "airbyte.database.user" .) | trim }} {{- if not (empty $user) }} DATABASE_USER: {{ $user }} {{- end }} -{{ $password := (include "airbyte.database.password" .)}} +{{ $password := (include "airbyte.database.password" .) | trim }} {{- if not (empty $password) }} DATABASE_PASSWORD: {{ $password }} {{- end}}