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:
@@ -33,7 +33,13 @@ while read line
|
|||||||
do
|
do
|
||||||
parts=(${line})
|
parts=(${line})
|
||||||
echo "Updating cluster ${parts[0]} in location ${parts[1]}..."
|
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
|
for service in frontend backend pubapi console
|
||||||
do
|
do
|
||||||
sed s/GCP_PROJECT/"${project}"/g "./kubernetes/nomulus-${service}.yaml" | \
|
sed s/GCP_PROJECT/"${project}"/g "./kubernetes/nomulus-${service}.yaml" | \
|
||||||
|
|||||||
Reference in New Issue
Block a user