Skip to content

Commit

Permalink
Use gcloud install instead of gcloud update for components to remove
Browse files Browse the repository at this point in the history
the annoying prompt.

Fixes kubernetes#18374
  • Loading branch information
roberthbailey committed Dec 8, 2015
1 parent fdc433a commit 48a84ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cluster/gce/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ function verify-prereqs {
if [ ! -w $(dirname `which gcloud`) ]; then
sudo_prefix="sudo"
fi
${sudo_prefix} gcloud ${gcloud_prompt:-} components update alpha || true
${sudo_prefix} gcloud ${gcloud_prompt:-} components update beta || true
${sudo_prefix} gcloud ${gcloud_prompt:-} components install alpha || true
${sudo_prefix} gcloud ${gcloud_prompt:-} components install beta || true
${sudo_prefix} gcloud ${gcloud_prompt:-} components update || true
}

Expand Down
7 changes: 3 additions & 4 deletions cluster/gke/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ function verify-prereqs() {
if [ ! -w $(dirname `which gcloud`) ]; then
sudo_prefix="sudo"
fi
${sudo_prefix} gcloud ${gcloud_prompt:-} components update alpha || true
${sudo_prefix} gcloud ${gcloud_prompt:-} components update beta || true
${sudo_prefix} gcloud ${gcloud_prompt:-} components update ${CMD_GROUP:-} || true
${sudo_prefix} gcloud ${gcloud_prompt:-} components update kubectl|| true
${sudo_prefix} gcloud ${gcloud_prompt:-} components install alpha || true
${sudo_prefix} gcloud ${gcloud_prompt:-} components install beta || true
${sudo_prefix} gcloud ${gcloud_prompt:-} components install kubectl|| true
${sudo_prefix} gcloud ${gcloud_prompt:-} components update || true
}

Expand Down

0 comments on commit 48a84ba

Please sign in to comment.