Skip to content

Commit

Permalink
Add cos as an alias for gci in the upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris committed Sep 22, 2017
1 parent 64fde98 commit 51b4486
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cluster/gce/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51b4486

Please sign in to comment.