Skip to content

Commit

Permalink
Fixed total CP waiting loop condition
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Schmid <philip.schmid@isovalent.com>
  • Loading branch information
PhilipSchmid committed Oct 20, 2023
1 parent 75b2954 commit 3ae80b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/provisioner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ set +e
if [[ "${WAIT_FOR_TOTAL_CONTROL_PLANE_NODES}" == "true" ]];
then
WAIT_FOR_TOTAL_CONTROL_PLANE_NODES_ATTEMPT_NUM=1
until [[ $(kubectl get node -l "${CONTROL_PLANE_NODES_LABEL_SELECTOR}" --no-headers | wc -l) == "${TOTAL_CONTROL_PLANE_NODES}" ]];
until [[ $(kubectl get node -l "${CONTROL_PLANE_NODES_LABEL_SELECTOR}" --no-headers | wc -l | tr -d '[:space:]') == "${TOTAL_CONTROL_PLANE_NODES}" ]];
do
if [[ ${WAIT_FOR_TOTAL_CONTROL_PLANE_NODES_ATTEMPT_NUM} -gt 180 ]];
then
Expand Down

0 comments on commit 3ae80b8

Please sign in to comment.