mirror of https://github.com/k3s-io/k3s
Merge pull request #15888 from paralin/allow-more-than-num-minions
cluster/validate-cluster.sh: Allow for greater than NUM_MINIONSpull/6/head
commit
03ee15a460
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue