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
if [[ "${REGISTER_MASTER_KUBELET:-}"=="true" ]];then
34
40
EXPECTED_NUM_NODES=$((EXPECTED_NUM_NODES+1))
35
41
fi
36
42
# Make several attempts to deal with slow cluster birth.
43
+
return_value=0
37
44
attempt=0
38
45
whiletrue;do
39
46
# The "kubectl get nodes -o template" exports node information.
@@ -59,7 +66,12 @@ while true; do
59
66
if(( attempt >100));then
60
67
echo -e "${color_red}Detected ${ready} ready nodes, found ${found} nodes out of expected ${EXPECTED_NUM_NODES}. Your cluster may not be fully functional.${color_norm}"
61
68
"${KUBE_ROOT}/cluster/kubectl.sh" get nodes
62
-
exit 2
69
+
if [ "$((${EXPECTED_NUM_NODES}-${found}))"-gt"${ALLOWED_NOTREADY_NODES}" ];then
0 commit comments