From 9bfe424761831397318ab8a21f390eca70235f34 Mon Sep 17 00:00:00 2001
From: Nitin Garg <gargnitin@google.com>
Date: Wed, 21 Aug 2024 05:18:51 +0000
Subject: [PATCH] remove gcloud-auth-config call run-script

---
 .../scripts/testing_on_gke/examples/run-gke-tests.sh     | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/perfmetrics/scripts/testing_on_gke/examples/run-gke-tests.sh b/perfmetrics/scripts/testing_on_gke/examples/run-gke-tests.sh
index 1f632ded97..7efc84a255 100755
--- a/perfmetrics/scripts/testing_on_gke/examples/run-gke-tests.sh
+++ b/perfmetrics/scripts/testing_on_gke/examples/run-gke-tests.sh
@@ -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.