Skip to content

Commit 5c08f1b

Browse files
committed
update cluster-setup
1 parent 199cee9 commit 5c08f1b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

charts/memgraph-high-availability/templates/cluster-setup.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ spec:
109109
local instance_name="${current_step##* }"
110110
[[ "$show_instances_output" == *"\"${instance_name}\""* ]]
111111
;;
112-
"SET INSTANCE instance_1 TO MAIN")
113-
[[ "$show_instances_output" == *"\"instance_1\""* ]] && [[ "$show_instances_output" == *"\"main\""* ]]
114-
;;
115112
*)
116113
return 1
117114
;;
@@ -143,7 +140,10 @@ spec:
143140
[[ "$output_lc" == *"already a main"* ]] || \
144141
[[ "$output_lc" == *"is already main"* ]] || \
145142
[[ "$output_lc" == *"request forwarded to the leader but leader failed with request processing"* ]]; then
146-
if ddl_already_applied "$step"; then
143+
if [[ "$output_lc" == *"already a main"* ]] || [[ "$output_lc" == *"is already main"* ]]; then
144+
echo "ℹ️ ${step} already applied; continuing"
145+
return 0
146+
elif ddl_already_applied "$step"; then
147147
echo "ℹ️ ${step} already applied; continuing"
148148
return 0
149149
fi

0 commit comments

Comments
 (0)