Skip to content

Commit

Permalink
Merge pull request terraform-google-modules#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 62ba116 + 5f8a00c commit aa9db52
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 aa9db52

Please sign in to comment.