Skip to content

Commit 838b7ca

Browse files
authored
Merge pull request #284 from omazin/master
[wait-for-cluster.sh] Set CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE.
2 parents f28ec9f + bb420df commit 838b7ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/wait-for-cluster.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright 2018 Google LLC
2+
# Copyright 2019 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -15,6 +15,10 @@
1515

1616
set -e
1717

18+
if [ -n "${GOOGLE_APPLICATION_CREDENTIALS}" ]; then
19+
CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE=${GOOGLE_APPLICATION_CREDENTIALS}
20+
fi
21+
1822
PROJECT=$1
1923
CLUSTER_NAME=$2
2024
gcloud_command="gcloud container clusters list --project=$PROJECT --format=json"

0 commit comments

Comments
 (0)