From 670edf6744e9c29506077b8c08c5e6495d225135 Mon Sep 17 00:00:00 2001 From: Milas Holsting Date: Mon, 18 May 2026 08:23:31 +0200 Subject: [PATCH] update to use transformations --- deploy/base/db-taskarr-user.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy/base/db-taskarr-user.yaml b/deploy/base/db-taskarr-user.yaml index ed2e640..fb02c5b 100644 --- a/deploy/base/db-taskarr-user.yaml +++ b/deploy/base/db-taskarr-user.yaml @@ -10,8 +10,9 @@ spec: create: true # This is where the magic happens transformation: + excludes: + - .* templates: DATABASE_URL: - # Use Go template syntax to build the string - # 'username' and 'password' come from the Vault response - content: "postgresql://{{ .username }}:{{ .password }}@postgres-service.taskarr.svc.cluster.local:5432/taskarr_db?sslmode=disable" + text: | + {{- printf "postgresql://%s:%s@postgres-service.taskarr.svc.cluster.local:5432/taskarr_db?sslmode=disable" (get .Secrets "username") (get .Secrets "password") -}}