1
0
mirror of https://github.com/google/nomulus synced 2025-12-23 06:15:42 +00:00

Only pull credential from the fleet on crash (#2645)

Only crash has the policy controller installed for now.
This commit is contained in:
Lai Jiang
2025-01-21 13:40:52 -05:00
committed by GitHub
parent bf025445d5
commit 799f0449ad

View File

@@ -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" | \