Skip to content

Commit

Permalink
Check already-set quota project
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Oct 23, 2023
1 parent 26e63a9 commit 50234ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions udmis/bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ ROOT=$(dirname $0)/..
cd $ROOT

echo Configuring for GCP project $project_id...
# This is slow, and not sure it's necessary...
# gcloud auth application-default set-quota-project $project_id
quota_project=$(jq -r .quota_project_id $HOME/.config/gcloud/application_default_credentials.json)
if [[ $quota_project != $project_id ]]; then
gcloud auth application-default set-quota-project $project_id
fi
gcloud --quiet config set project $project_id

saved=$(kubectl config current-context)
Expand Down

0 comments on commit 50234ec

Please sign in to comment.