Skip to content

Commit

Permalink
Merge pull request #284 from omazin/master
Browse files Browse the repository at this point in the history
[wait-for-cluster.sh] Set CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE.
  • Loading branch information
morgante authored Oct 17, 2019
2 parents f28ec9f + bb420df commit 838b7ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/wait-for-cluster.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Copyright 2018 Google LLC
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,10 @@

set -e

if [ -n "${GOOGLE_APPLICATION_CREDENTIALS}" ]; then
CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE=${GOOGLE_APPLICATION_CREDENTIALS}
fi

PROJECT=$1
CLUSTER_NAME=$2
gcloud_command="gcloud container clusters list --project=$PROJECT --format=json"
Expand Down

0 comments on commit 838b7ca

Please sign in to comment.