From 5f8a00c0fbdd6fed84e1487c175967062de66555 Mon Sep 17 00:00:00 2001 From: omazin Date: Thu, 17 Oct 2019 15:15:38 +0300 Subject: [PATCH] [wait-for-cluster.sh] Set CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE. --- scripts/wait-for-cluster.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/wait-for-cluster.sh b/scripts/wait-for-cluster.sh index 6ff3253d58..37f0176ec7 100755 --- a/scripts/wait-for-cluster.sh +++ b/scripts/wait-for-cluster.sh @@ -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. @@ -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"