Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-install gcloud and needed components, if necessary #6168

Merged
merged 1 commit into from
Mar 31, 2015

Conversation

brendandburns
Copy link
Contributor

No description provided.

echo "is not installed. (Fix with 'gcloud components update preview')"
}
local cmd
for cmd in gcloud; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reason to have a loop here any longer since the logic in the (single) iteration is gcloud specific. If you add another required command the whole loop body would become an if/else anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

echo "Either the GCLOUD environment variable is wrong, or the 'preview' component"
echo "is not installed. (Fix with 'gcloud components update preview')"
}
local cmd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmd is never set, and shouldn't be needed. replace occurrences of ${cmd} with gcloud.

@brendandburns
Copy link
Contributor Author

Fixed.

@roberthbailey
Copy link
Contributor

LGTM.

roberthbailey added a commit that referenced this pull request Mar 31, 2015
Auto-install gcloud and needed components, if necessary
@roberthbailey roberthbailey merged commit fe00f7a into kubernetes:master Mar 31, 2015
local resp
read resp
if [[ "${KUBE_PROMPT_FOR_UPDATE" == "y" ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a missing } here. This is breaking jenkins.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, you caught it. :) I'll let @ixdy handle it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants