Skip to content

Commit 8ed6bfc

Browse files
authored
Merge pull request #285 from omazin/master
[wait-for-cluster.sh] Update the script in all submodules.
2 parents c227c65 + c135d48 commit 8ed6bfc

File tree

7 files changed

+31
-7
lines changed

7 files changed

+31
-7
lines changed

autogen/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+
export 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"

modules/beta-private-cluster-update-variant/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+
export 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"

modules/beta-private-cluster/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+
export 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"

modules/beta-public-cluster/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+
export 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"

modules/private-cluster-update-variant/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+
export 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"

modules/private-cluster/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+
export 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"

scripts/wait-for-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
set -e
1717

1818
if [ -n "${GOOGLE_APPLICATION_CREDENTIALS}" ]; then
19-
CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE=${GOOGLE_APPLICATION_CREDENTIALS}
19+
export CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE=${GOOGLE_APPLICATION_CREDENTIALS}
2020
fi
2121

2222
PROJECT=$1

0 commit comments

Comments
 (0)