Skip to content

Commit 71cfaaf

Browse files
committed
Move stale reads to CDC only.
1 parent ec21739 commit 71cfaaf

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

infra/dcp/modules/cdc/locals.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ locals {
7171
{
7272
name = "GCP_SPANNER_DATABASE_NAME"
7373
value = var.spanner_database_id
74-
},
75-
{
76-
name = "USE_STALE_READS"
77-
value = var.use_spanner ? "true" : "false"
7874
}
7975
]
8076

infra/dcp/modules/cdc/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@ resource "google_cloud_run_v2_service" "dc_web_service" {
262262
}
263263
}
264264

265+
env {
266+
name = "USE_STALE_READS"
267+
value = var.use_spanner ? "true" : "false"
268+
}
269+
265270
dynamic "env" {
266271
for_each = local.cloud_run_shared_env_variable_secrets
267272
content {

0 commit comments

Comments
 (0)