update to use transformations

This commit is contained in:
2026-05-18 08:23:31 +02:00
parent ceb530f5b8
commit 670edf6744

View File

@@ -10,8 +10,9 @@ spec:
create: true create: true
# This is where the magic happens # This is where the magic happens
transformation: transformation:
excludes:
- .*
templates: templates:
DATABASE_URL: DATABASE_URL:
# Use Go template syntax to build the string text: |
# 'username' and 'password' come from the Vault response {{- printf "postgresql://%s:%s@postgres-service.taskarr.svc.cluster.local:5432/taskarr_db?sslmode=disable" (get .Secrets "username") (get .Secrets "password") -}}
content: "postgresql://{{ .username }}:{{ .password }}@postgres-service.taskarr.svc.cluster.local:5432/taskarr_db?sslmode=disable"