fix: align d601 v03 postgres source truth (#869)

Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
Lyon
2026-06-25 11:33:42 +08:00
committed by GitHub
parent cab3e83a4a
commit dc7bdd2c3c
2 changed files with 24 additions and 21 deletions
+1 -1
View File
@@ -10822,7 +10822,7 @@ function runtimeSecretSpec(input: { node: string; lane: string }): RuntimeSecret
const externalPostgres = runtimeLaneSpec?.externalPostgres;
const postgresStore = runtimeLaneSpec?.runtimeStore?.postgres;
const bootstrapAdmin = runtimeLaneSpec?.bootstrapAdmin;
const platformDb = externalPostgres !== undefined || postgresStore?.mode === "platform-service" || (postgresStore?.mode === undefined && /^v0*[3-9]\d*$/.test(input.lane));
const platformDb = externalPostgres !== undefined || postgresStore?.mode === "platform-service";
const localPostgresService = postgresStore?.serviceName ?? `${namespace}-postgres`;
const platformPostgresService = externalPostgres?.serviceName ?? postgresStore?.serviceName ?? "g14-platform-postgres";
const legacyPostgresHost = `${localPostgresService}.${namespace}.svc.cluster.local`;