-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Conversation
echo "is not installed. (Fix with 'gcloud components update preview')" | ||
} | ||
local cmd | ||
for cmd in gcloud; do |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
Fixed. |
LGTM. |
Auto-install gcloud and needed components, if necessary
local resp | ||
read resp | ||
if [[ "${KUBE_PROMPT_FOR_UPDATE" == "y" ]]; then |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
No description provided.