You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/ci-entrypoint.sh
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -141,9 +141,14 @@ install_addons() {
141
141
142
142
# Copy the kubeadm configmap to the calico-system namespace. This is a workaround needed for the calico-node-windows daemonset to be able to run in the calico-system namespace.
143
143
"${KUBECTL}" create ns calico-system
144
+
until"${KUBECTL}" get configmap kubeadm-config --namespace=kube-system
145
+
do
146
+
# Wait for the kubeadm-config configmap to exist.
147
+
sleep 2
148
+
done
144
149
"${KUBECTL}" get configmap kubeadm-config --namespace=kube-system -o yaml \
145
150
| sed 's/namespace: kube-system/namespace: calico-system/' \
echo"Waiting for all calico-system pods to be ready"
211
216
"${KUBECTL}"wait --for=condition=Ready pod -n calico-system --all --timeout=10m
212
217
@@ -215,7 +220,7 @@ install_addons() {
215
220
}
216
221
217
222
wait_for_nodes() {
218
-
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"
223
+
echo"Waiting for ${CONTROL_PLANE_MACHINE_COUNT} control plane machine(s), ${WORKER_MACHINE_COUNT} worker machine(s), and ${WINDOWS_WORKER_MACHINE_COUNT:-0} windows machine(s) to become Ready"
219
224
220
225
# Ensure that all nodes are registered with the API server before checking for readiness
221
226
local total_nodes="$((CONTROL_PLANE_MACHINE_COUNT + WORKER_MACHINE_COUNT + WINDOWS_WORKER_MACHINE_COUNT))"
0 commit comments