Skip to content

fix(tanka): set BACKEND_POSTGRES_URL env var for pgwire proxy - #7

Merged
birdmanmandbir merged 1 commit into
mainfrom
worker/5669f5fb
Apr 7, 2026
Merged

fix(tanka): set BACKEND_POSTGRES_URL env var for pgwire proxy#7
birdmanmandbir merged 1 commit into
mainfrom
worker/5669f5fb

Conversation

@birdmanmandbir

Copy link
Copy Markdown
Contributor

Summary

  • Add BACKEND_POSTGRES_URL env var to the pgwire proxy container, pointing at the flicknote-rw CNPG pooler service (flicknote-rw.infra-dev.svc for dev, flicknote-rw.infra-prod.svc for prod)
  • Mirrors the existing DATABASE_URL value so the Rust binary no longer panics at startup with "BACKEND_POSTGRES_URL must be set"
  • Credentials sourced from the existing dbSecret (secretKeyRef), consistent with all other DB connection vars

Test plan

  • Verify rendered manifests include BACKEND_POSTGRES_URL after tk eval environments/dev and tk eval environments/prod
  • Confirm startup panic is resolved on next deploy

🍷 Generated with Lenos

Both dev and prod environments now set BACKEND_POSTGRES_URL pointing
at the flicknote-rw CNPG pooler service, matching the existing DATABASE_URL
value. Credentials are sourced from the dbSecret (secretKeyRef), consistent
with how all other DB connection vars are configured.

🍷 Generated with Lenos

Assisted-by: MiniMax-M2.7-highspeed via Lenos <lenos@tta-lab.com>
@birdmanmandbir
birdmanmandbir merged commit 7b51ad0 into main Apr 7, 2026
1 check passed
@birdmanmandbir
birdmanmandbir deleted the worker/5669f5fb branch April 7, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant