update to use transformations
This commit is contained in:
@@ -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"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user