From 51b4486888ca4cc972cad59fe1c8d03a43a31b0d Mon Sep 17 00:00:00 2001 From: Kris Date: Fri, 22 Sep 2017 15:31:04 -0700 Subject: [PATCH] Add cos as an alias for gci in the upgrade script --- cluster/gce/upgrade.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cluster/gce/upgrade.sh b/cluster/gce/upgrade.sh index e2606b700fc69..1345eeb10e731 100755 --- a/cluster/gce/upgrade.sh +++ b/cluster/gce/upgrade.sh @@ -253,6 +253,11 @@ function setup-base-image() { if [[ "${env_os_distro}" == "false" ]]; then echo "== Ensuring that new Node base OS image matched the existing Node base OS image" NODE_OS_DISTRIBUTION=$(get-node-os "${NODE_NAMES[0]}") + + if [[ "${NODE_OS_DISTRIBUTION}" == "cos" ]]; then + NODE_OS_DISTRIBUTION="gci" + fi + source "${KUBE_ROOT}/cluster/gce/${NODE_OS_DISTRIBUTION}/node-helper.sh" # Reset the node image based on current os distro set-node-image