From 566309a2a128ae0d7d387a7dda24820324e3357a Mon Sep 17 00:00:00 2001 From: "callumdmay@gmail.com" Date: Fri, 18 Oct 2024 12:57:04 -0400 Subject: [PATCH] fix presence check --- deploy/services/tanka/cockroachdb.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/services/tanka/cockroachdb.libsonnet b/deploy/services/tanka/cockroachdb.libsonnet index c6300cfb9..b740685e4 100644 --- a/deploy/services/tanka/cockroachdb.libsonnet +++ b/deploy/services/tanka/cockroachdb.libsonnet @@ -87,7 +87,7 @@ local volumes = import 'volumes.libsonnet'; join: std.join(',', ['cockroachdb-0.cockroachdb'] + if metadata.single_cluster then [] else metadata.cockroach.JoinExisting), logtostderr: true, - locality: if metadata.cockroach.region != null then std.join(',', ['region=' + metadata.cockroach.region, 'zone=' + metadata.cockroach.locality]) else 'zone=' + metadata.cockroach.locality, + locality: if std.objectHas(metadata.cockroach, 'region') then std.join(',', ['region=' + metadata.cockroach.region, 'zone=' + metadata.cockroach.locality]) else 'zone=' + metadata.cockroach.locality, 'locality-advertise-addr': 'zone=' + metadata.cockroach.locality + '@$(hostname -f)', 'http-addr': '0.0.0.0', cache: '25%',