Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit f492395

Browse files
committed
Set cluster credentials before any command
1 parent b51bab1 commit f492395

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,9 @@ function auth() {
390390
exit 1
391391
fi
392392

393+
gcloud config set project "${PROJECT_NAME}"
394+
gcloud container clusters get-credentials --region="${REGION}" "${CLUSTER_NAME}"
395+
393396
echo "Using the auth providers configuration file: ${AUTHPROVIDERS_CONFIG}"
394397
# Patching the configuration with the user auth provider/s
395398
kubectl patch configmap auth-providers-config --type merge --patch "$(cat ${AUTHPROVIDERS_CONFIG})"

0 commit comments

Comments
 (0)