From 799f0449ad63b191270a9043137d985441bd7926 Mon Sep 17 00:00:00 2001 From: Lai Jiang Date: Tue, 21 Jan 2025 13:40:52 -0500 Subject: [PATCH] Only pull credential from the fleet on crash (#2645) Only crash has the policy controller installed for now. --- jetty/deploy-nomulus-for-env.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jetty/deploy-nomulus-for-env.sh b/jetty/deploy-nomulus-for-env.sh index aeaed6c7e..533321a10 100755 --- a/jetty/deploy-nomulus-for-env.sh +++ b/jetty/deploy-nomulus-for-env.sh @@ -33,7 +33,13 @@ while read line do parts=(${line}) echo "Updating cluster ${parts[0]} in location ${parts[1]}..." - gcloud container fleet memberships get-credentials "${parts[0]}" --project "${project}" + if [[ ${environment} == "crash" ]] + then + gcloud container fleet memberships get-credentials "${parts[0]}" --project "${project}" + else + gcloud container clusters get-credentials "${parts[0]}" \ + --project "${project}" --location "${parts[1]}" + fi for service in frontend backend pubapi console do sed s/GCP_PROJECT/"${project}"/g "./kubernetes/nomulus-${service}.yaml" | \