Skip to content

Commit 04cba22

Browse files
committed
Wait for Windows nodes (if any) in ci-entrpoint.sh
1 parent 7979a97 commit 04cba22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/ci-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ create_cluster() {
112112
}
113113

114114
wait_for_nodes() {
115-
echo "Waiting for ${CONTROL_PLANE_MACHINE_COUNT} control plane machine(s) and ${WORKER_MACHINE_COUNT} worker machine(s) to become Ready"
115+
echo "Waiting for ${CONTROL_PLANE_MACHINE_COUNT} control plane machine(s), ${WORKER_MACHINE_COUNT} worker machine(s), and ${WINDOWS_WORKER_MACHINE_COUNT} windows machine(s) to become Ready"
116116

117117
# Ensure that all nodes are registered with the API server before checking for readiness
118-
local total_nodes="$((CONTROL_PLANE_MACHINE_COUNT + WORKER_MACHINE_COUNT))"
118+
local total_nodes="$((CONTROL_PLANE_MACHINE_COUNT + WORKER_MACHINE_COUNT + WINDOWS_WORKER_MACHINE_COUNT))"
119119
while [[ $("${KUBECTL}" get nodes -ojson | jq '.items | length') -ne "${total_nodes}" ]]; do
120120
sleep 10
121121
done

0 commit comments

Comments
 (0)