mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
kube-up multizone: don't print scary warning
The node-count check gets confused when there are more nodes that we launched, which is normal with KUBE_USE_EXISTING_MASTER. This fix just suppresses the error message in that case. Fix #23390
This commit is contained in:
parent
afedd3d34d
commit
bab7a255b7
@ -79,7 +79,9 @@ while true; do
|
|||||||
if (( "${found}" == "${EXPECTED_NUM_NODES}" )) && (( "${ready}" == "${EXPECTED_NUM_NODES}")); then
|
if (( "${found}" == "${EXPECTED_NUM_NODES}" )) && (( "${ready}" == "${EXPECTED_NUM_NODES}")); then
|
||||||
break
|
break
|
||||||
elif (( "${found}" > "${EXPECTED_NUM_NODES}" )); then
|
elif (( "${found}" > "${EXPECTED_NUM_NODES}" )); then
|
||||||
|
if [[ "${KUBE_USE_EXISTING_MASTER:-}" != "true" ]]; then
|
||||||
echo -e "${color_red}Found ${found} nodes, but expected ${EXPECTED_NUM_NODES}. Your cluster may not behave correctly.${color_norm}"
|
echo -e "${color_red}Found ${found} nodes, but expected ${EXPECTED_NUM_NODES}. Your cluster may not behave correctly.${color_norm}"
|
||||||
|
fi
|
||||||
break
|
break
|
||||||
elif (( "${ready}" > "${EXPECTED_NUM_NODES}")); then
|
elif (( "${ready}" > "${EXPECTED_NUM_NODES}")); then
|
||||||
echo -e "${color_red}Found ${ready} ready nodes, but expected ${EXPECTED_NUM_NODES}. Your cluster may not behave correctly.${color_norm}"
|
echo -e "${color_red}Found ${ready} ready nodes, but expected ${EXPECTED_NUM_NODES}. Your cluster may not behave correctly.${color_norm}"
|
||||||
|
Loading…
Reference in New Issue
Block a user