Skip to content

Commit

Permalink
remove gcloud-auth-config call run-script
Browse files Browse the repository at this point in the history
  • Loading branch information
gargnitingoogle committed Aug 21, 2024
1 parent e1f8cb3 commit 9bfe424
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions perfmetrics/scripts/testing_on_gke/examples/run-gke-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,11 @@ function installDependencies() {

# Make sure you have access to the necessary GCP resources. The easiest way to enable it is to use <your-ldap>@google.com as active auth.
function ensureGcpAuthsAndConfig() {
if ! $(gcloud auth list | grep -q ${USER}); then
gcloud auth application-default login --no-launch-browser && (gcloud auth list | grep -q ${USER})
fi
gcloud config set project ${project_id} && gcloud config list
# gcloud auth application-default login --no-launch-browser
gcloud auth list
# grep -q ${USER}
gcloud config set project ${project_id}
gcloud config list
}

# Verify that the passed machine configuration parameters (machine-type, num-nodes, num-ssd) are compatible.
Expand Down

0 comments on commit 9bfe424

Please sign in to comment.