Added failing upgrade if there are many master replicas.

Added failing upgrade (GCE) if there are many master replicas. Releated
to #43688.
pull/6/head
Jerzy Szczepkowski 2017-03-27 14:29:06 +02:00
parent e38c575ae6
commit 27b8e1f518
1 changed files with 7 additions and 0 deletions

View File

@ -74,6 +74,13 @@ function print-node-version-info() {
}
function upgrade-master() {
local num_masters
num_masters=$(get-master-replicas-count)
if [[ "${num_masters}" -gt 1 ]]; then
echo "Upgrade of master not supported if more than one master replica present. The current number of master replicas: ${num_masters}"
exit 1
fi
echo "== Upgrading master to '${SERVER_BINARY_TAR_URL}'. Do not interrupt, deleting master instance. =="
# Tries to figure out KUBE_USER/KUBE_PASSWORD by first looking under