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

Pull credentials from fleet for all clusters (#2647)

All clusters have switched to using private APIs.
This commit is contained in:
Lai Jiang
2025-01-22 11:58:56 -05:00
committed by GitHub
parent e3c386a8a7
commit b775e4a178

View File

@@ -33,13 +33,7 @@ while read line
do
parts=(${line})
echo "Updating cluster ${parts[0]} in location ${parts[1]}..."
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" | \