Skip to content

Commit

Permalink
fix: adjust for loop in script
Browse files Browse the repository at this point in the history
  • Loading branch information
bkenez committed Feb 4, 2025
1 parent d605d16 commit 4ee283c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aws/dual-region/scripts/generate_zeebe_helm_values.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ generate_initial_contact() {
local count=$4
local port_number=26502
local result=""
for ((i=0; i<count/2; i++)); do
local half_count=$((count / 2)) # Perform division safely

for ((i=0; i<half_count; i++)); do
result+="${release}-zeebe-${i}.${release}-zeebe.${ns_0}.svc.cluster.local:${port_number},"
result+="${release}-zeebe-${i}.${release}-zeebe.${ns_1}.svc.cluster.local:${port_number},"
done
Expand Down

0 comments on commit 4ee283c

Please sign in to comment.