DodoApp: Expose full PostgreSQL connection string as an env var
Change-Id: Ic447433598671e0579c669f75ed60d5614efc2e9
diff --git a/core/installer/app_configs/dodo_app.cue b/core/installer/app_configs/dodo_app.cue
index 12bb14c..ceb72c9 100644
--- a/core/installer/app_configs/dodo_app.cue
+++ b/core/installer/app_configs/dodo_app.cue
@@ -116,6 +116,9 @@
for v in postgresql {
"DODO_POSTGRESQL_\(strings.ToUpper(v.name))_DATABASE=postgres"
}
+ for v in postgresql {
+ "DODO_POSTGRESQL_\(strings.ToUpper(v.name))_URL=postgresql://postgres:postgres@postgres-\(v.name).\(release.namespace).svc.cluster.local/postgres"
+ }
]
...