Skip to content

Commit

Permalink
Fix the scripts to optionally skip prompts and also return successful…
Browse files Browse the repository at this point in the history
…ly no matter what.
  • Loading branch information
brendandburns committed Mar 27, 2015
1 parent 1aa2b97 commit 6fd376a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cluster/gce/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ source "${KUBE_ROOT}/cluster/common.sh"

NODE_INSTANCE_PREFIX="${INSTANCE_PREFIX}-minion"

KUBE_PROMPT_FOR_UPDATE=y

# Verify prereqs
function verify-prereqs {
local cmd
Expand All @@ -43,8 +45,11 @@ function verify-prereqs {
fi
done
# update and install components as needed
gcloud components update preview
gcloud components update
if [[ "${KUBE_PROMPT_FOR_UPDATE}" != "y" ]]; then
gcloud_prompt="-q"
fi
gcloud ${gcloud_prompt:-} components update preview || true
gcloud ${gcloud_prompt:-} components update || true
}

# Create a temp dir that'll be deleted at the end of this bash session.
Expand Down

0 comments on commit 6fd376a

Please sign in to comment.