mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-29 21:29:24 +00:00
Fix error message around gcloud calls in node e2e and gubernator
This commit is contained in:
@@ -35,19 +35,19 @@ fi
|
||||
|
||||
# Check that user has gsutil
|
||||
if [[ $(which gsutil) == "" ]]; then
|
||||
echo "Could not find gsutil when running:\which gsutil"
|
||||
echo "Could not find gsutil when running \`which gsutil\`"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check that user has gcloud
|
||||
if [[ $(which gcloud) == "" ]]; then
|
||||
echo "Could not find gcloud when running:\which gcloud"
|
||||
echo "Could not find gcloud when running: \`which gcloud\`"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check that user has Credentialed Active account
|
||||
if ! gcloud auth list | grep -q "ACTIVE"; then
|
||||
echo "Could not find active account when running:\gcloud auth list"
|
||||
echo "Could not find active account when running: \`gcloud auth list\`"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user