Fix the node upgrade failure issue #27764

This commit is contained in:
Andy Zheng 2016-06-21 14:45:45 -07:00
parent 0e562d29c7
commit c2cdc2e9fd

View File

@ -211,6 +211,10 @@ function prepare-node-upgrade() {
# TODO(zmerlynn): Get configure-vm script from ${version}. (Must plumb this
# through all create-node-instance-template implementations).
local template_name=$(get-template-name-from-version ${SANITIZED_VERSION})
# For master on GCI, we support the hybrid mode with nodes on ContainerVM.
if [[ "${OS_DISTRIBUTION}" == "gci" && "${NODE_IMAGE}" == container* ]]; then
source "${KUBE_ROOT}/cluster/gce/debian/helper.sh"
fi
create-node-instance-template "${template_name}"
# The following is echo'd so that callers can get the template name.
echo $template_name