mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Merge pull request #3082 from zmerlynn/gkecmd
Fix binary detection on GKE
This commit is contained in:
commit
e9f8adfe54
@ -69,16 +69,11 @@ function test-build-release() {
|
|||||||
# Verify needed binaries exist.
|
# Verify needed binaries exist.
|
||||||
function verify-prereqs() {
|
function verify-prereqs() {
|
||||||
echo "... in verify-prereqs()" >&2
|
echo "... in verify-prereqs()" >&2
|
||||||
local cmd
|
|
||||||
# TODO(mbforbes): This assumes you have a "normal" gcloud installed even if
|
${GCLOUD} preview --help >/dev/null 2>&1 || {
|
||||||
# you are setting one differently using ${GCLOUD}.
|
echo "Either the GCLOUD environment variable is wrong, or the 'preview' component"
|
||||||
for cmd in gcloud kubectl; do
|
echo "is not installed. (Fix with 'gcloud components update preview')"
|
||||||
which "${cmd}" >/dev/null || {
|
|
||||||
echo "Can't find ${cmd} in PATH, please fix and retry. The Google Cloud "
|
|
||||||
echo "SDK can be downloaded from https://cloud.google.com/sdk/."
|
|
||||||
exit 1
|
|
||||||
}
|
}
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Instantiate a kubernetes cluster
|
# Instantiate a kubernetes cluster
|
||||||
|
Loading…
Reference in New Issue
Block a user