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"