DodoApp: Fix PostgreSQL service address env var
Change-Id: Iab0759a4133389df0d6b7ccc3122dea7fdbdb929
diff --git a/core/installer/app_configs/app_base.cue b/core/installer/app_configs/app_base.cue
index 5035fc7..9ca1eec 100644
--- a/core/installer/app_configs/app_base.cue
+++ b/core/installer/app_configs/app_base.cue
@@ -209,7 +209,7 @@
"dodo.cloud/resource.postgresql.volume": _volumeClaimName
}
values: {
- fullnameOverride: "postgres"
+ fullnameOverride: "postgres-\(name)"
image: {
registry: images.postgres.registry
repository: images.postgres.imageName
@@ -217,6 +217,7 @@
pullPolicy: images.postgres.pullPolicy
}
auth: {
+ postgresPassword: "postgres"
username: "postgres"
password: "postgres"
database: "postgres"
@@ -225,6 +226,16 @@
type: "ClusterIP"
port: 5432
}
+ global: {
+ postgresql: {
+ auth: {
+ postgresPassword: "postgres"
+ username: "postgres"
+ password: "postgres"
+ database: "postgres"
+ }
+ }
+ }
primary: {
persistence: existingClaim: _volumeClaimName
if initSQL != "" {
diff --git a/core/installer/app_configs/dodo_app.cue b/core/installer/app_configs/dodo_app.cue
index 8a67645..a6fc803 100644
--- a/core/installer/app_configs/dodo_app.cue
+++ b/core/installer/app_configs/dodo_app.cue
@@ -79,7 +79,7 @@
"DODO_VOLUME_\(strings.ToUpper(k))=/dodo-volume/\(v.name)"
}
for k, v in postgresql {
- "DODO_POSTGRESQL_\(strings.ToUpper(k))_ADDRESS=\(v.name).\(release.namespace).svc.cluster.local"
+ "DODO_POSTGRESQL_\(strings.ToUpper(k))_ADDRESS=postgres-\(v.name).\(release.namespace).svc.cluster.local"
}
for k, v in postgresql {
"DODO_POSTGRESQL_\(strings.ToUpper(k))_USERNAME=postgres"