From c2cdc2e9fd9ae34bb626e98ad8041ead46cfd02e Mon Sep 17 00:00:00 2001 From: Andy Zheng Date: Tue, 21 Jun 2016 14:45:45 -0700 Subject: [PATCH] Fix the node upgrade failure issue #27764 --- cluster/gce/upgrade.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cluster/gce/upgrade.sh b/cluster/gce/upgrade.sh index 3d55f38acf4..e5fd89b25b1 100755 --- a/cluster/gce/upgrade.sh +++ b/cluster/gce/upgrade.sh @@ -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