Skip to content

Commit

Permalink
cluster/validate-cluster.sh: Allow for greater than NUM_MINIONS.
Browse files Browse the repository at this point in the history
Fixes kubernetes#15887. Print a warning when there are more nodes than expected.

Signed-off-by: Christian Stewart <christian@paral.in>
  • Loading branch information
paralin committed Oct 20, 2015
1 parent b02b5b9 commit fec326f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cluster/validate-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ while true; do

if (( "${found}" == "${EXPECTED_NUM_NODES}" )) && (( "${ready}" == "${EXPECTED_NUM_NODES}")); then
break
elif (( "${found}" > "${EXPECTED_NUM_NODES}" )) && (( "${ready}" > "${EXPECTED_NUM_NODES}")); then
echo -e "${color_red}Detected ${ready} ready nodes, found ${found} nodes out of expected ${EXPECTED_NUM_NODES}. Found more nodes than expected, your cluster may not behave correctly.${color_norm}"
break
else
# Set the timeout to ~10minutes (40 x 15 second) to avoid timeouts for 100-node clusters.
if (( attempt > 40 )); then
Expand Down

0 comments on commit fec326f

Please sign in to comment.