From 187423d5f41dacb33c5e3806f563bdfe8dc08bb2 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 12 Jan 2025 23:07:33 +0100 Subject: [PATCH] feat: add port as string Signed-off-by: kjuulh --- crates/cuddle-clusters/src/catalog/postgres_database.rs | 2 +- .../with_postgres_database/expected/dev/cuddle-postgres.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/cuddle-clusters/src/catalog/postgres_database.rs b/crates/cuddle-clusters/src/catalog/postgres_database.rs index 0d22ea5..a1319a7 100644 --- a/crates/cuddle-clusters/src/catalog/postgres_database.rs +++ b/crates/cuddle-clusters/src/catalog/postgres_database.rs @@ -101,7 +101,7 @@ metadata: data: DATABASE_TYPE: postgresql DATABASE_HOST: {{ environment }}.postgresql.kjuulh.app - DATABASE_PORT: {{ port }} + DATABASE_PORT: "{{ port }}" DATABASE_USER: {{ vars.cuddle_vars.service | replace("-", "_") }} DATABASE_DB: {{ vars.cuddle_vars.service | replace("-", "_") }} diff --git a/crates/cuddle-clusters/tests/with_postgres_database/expected/dev/cuddle-postgres.yaml b/crates/cuddle-clusters/tests/with_postgres_database/expected/dev/cuddle-postgres.yaml index dbef0ec..15f6ec4 100644 --- a/crates/cuddle-clusters/tests/with_postgres_database/expected/dev/cuddle-postgres.yaml +++ b/crates/cuddle-clusters/tests/with_postgres_database/expected/dev/cuddle-postgres.yaml @@ -7,6 +7,6 @@ metadata: data: DATABASE_TYPE: postgresql DATABASE_HOST: dev.postgresql.kjuulh.app - DATABASE_PORT: 5433 + DATABASE_PORT: "5433" DATABASE_USER: service DATABASE_DB: service