Skip to content

Commit

Permalink
[wait-for-cluster.sh] Set CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE.
Browse files Browse the repository at this point in the history
  • Loading branch information
omazin committed Oct 17, 2019
1 parent 62ba116 commit 5f8a00c
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 5f8a00c

Please sign in to comment.