Skip to content

Commit

Permalink
fix presence check
Browse files Browse the repository at this point in the history
  • Loading branch information
callumdmay committed Oct 18, 2024
1 parent 8cfac69 commit c20e3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/services/tanka/cockroachdb.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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%',
Expand Down

0 comments on commit c20e3f4

Please sign in to comment.