mirror of https://github.com/k3s-io/k3s
Merge pull request #27824 from andyzheng0831/upgrade
Fix the node upgrade failure issue #27764pull/6/head
commit
95d492603d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue