Allow autoscaler min at 0 in GCE

This commit is contained in:
Marcin Wielgus 2017-06-14 07:36:18 +02:00
parent 85832892b1
commit 5e390eff1a

View File

@ -1247,8 +1247,8 @@ function create-cluster-autoscaler-mig-config() {
# Each MIG must have at least one node, so the min number of nodes
# must be greater or equal to the number of migs.
if [[ ${AUTOSCALER_MIN_NODES} -lt ${NUM_MIGS} ]]; then
echo "AUTOSCALER_MIN_NODES must be greater or equal ${NUM_MIGS}"
if [[ ${AUTOSCALER_MIN_NODES} -lt 0 ]]; then
echo "AUTOSCALER_MIN_NODES must be greater or equal 0"
exit 2
fi