From 484ae7c6545de8fb1161bca67c189ac9e60226eb Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Sat, 13 Dec 2025 22:26:11 +0000 Subject: [PATCH] env variables --- db/atlas/atlas.hcl | 6 ++++-- db/k8s/secrets/postgres-secret.yaml | 5 ----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/db/atlas/atlas.hcl b/db/atlas/atlas.hcl index 8f4a90e..bbe2d09 100644 --- a/db/atlas/atlas.hcl +++ b/db/atlas/atlas.hcl @@ -1,5 +1,6 @@ env "stripe_invoice_dev" { - url = "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres.default.svc.cluster.local:5432/stripe_invoice_dev?sslmode=disable" + url = "postgres://"+env("POSTGRES_USER")+":"+env("POSTGRES_PASSWORD")+ + "@postgres.default.svc.cluster.local:5432/stripe_invoice?sslmode=disable" migration { dir = "file://./db/atlas/stripe_invoice/migrations" @@ -7,7 +8,8 @@ env "stripe_invoice_dev" { } env "stripe_invoice_prod" { - url = "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres.default.svc.cluster.local:5432/stripe_invoice_prod?sslmode=disable" + url = "postgres://"+env("POSTGRES_USER")+":"+env("POSTGRES_PASSWORD")+ + "@postgres.default.svc.cluster.local:5432/stripe_invoice_prod?sslmode=disable" migration { dir = "file://./db/atlas/stripe_invoice/migrations" diff --git a/db/k8s/secrets/postgres-secret.yaml b/db/k8s/secrets/postgres-secret.yaml index 755f315..ab14b37 100644 --- a/db/k8s/secrets/postgres-secret.yaml +++ b/db/k8s/secrets/postgres-secret.yaml @@ -7,8 +7,3 @@ stringData: POSTGRES_USER: postgres POSTGRES_PASSWORD: averysecretpasswordPersonAppleWinter938 POSTGRES_DB: stripe_invoice - DB_USER: postgres - DB_PASSWORD: averysecretpasswordPersonAppleWinter938 - DB_NAME: stripe_invoice - DB_HOST: postgres - DB_PORT: "5432"