fix: separate HWLAB migration database URL

This commit is contained in:
Codex
2026-07-17 00:08:29 +02:00
parent 283ef29a2a
commit 278ecac8cb
4 changed files with 31 additions and 2 deletions
+16 -1
View File
@@ -500,7 +500,7 @@ exports:
sourceSecretRef: platform-db/hwlab-nc01-production-db.env
render:
envKey: DATABASE_URL
format: postgresql://$(HWLAB_NC01_PRODUCTION_DB_USER):$(HWLAB_NC01_PRODUCTION_DB_PASSWORD)@$(PGHOST):5432/$(HWLAB_NC01_PRODUCTION_DB_NAME)?sslmode=require&uselibpqcompat=true
format: postgresql://$(HWLAB_NC01_PRODUCTION_DB_USER):$(HWLAB_NC01_PRODUCTION_DB_PASSWORD)@$(PGHOST):5432/$(HWLAB_NC01_PRODUCTION_DB_NAME)?sslmode=require
variables:
PGHOST: 10.42.0.1
writeToSecretSource:
@@ -511,6 +511,21 @@ exports:
- scope: hwlab-production
secret: hwlab-cloud-api-production-db
key: DATABASE_URL
- name: hwlab-nc01-production-migration-database-url
sourceSecretRef: platform-db/hwlab-nc01-production-db.env
render:
envKey: MIGRATION_DATABASE_URL
format: postgresql://$(HWLAB_NC01_PRODUCTION_DB_USER):$(HWLAB_NC01_PRODUCTION_DB_PASSWORD)@$(PGHOST):5432/$(HWLAB_NC01_PRODUCTION_DB_NAME)?sslmode=require&uselibpqcompat=true
variables:
PGHOST: 10.42.0.1
writeToSecretSource:
sourceRef: hwlab/nc01-production-cloud-api-db.env
key: MIGRATION_DATABASE_URL
mode: update-or-insert
consumers:
- scope: hwlab-production
secret: hwlab-cloud-api-production-db
key: MIGRATION_DATABASE_URL
- name: hwlab-nc01-production-openfga-datastore-uri
sourceSecretRef: platform-db/hwlab-nc01-production-db.env
render: