Skip to content

Commit 799f044

Browse files
authored
Only pull credential from the fleet on crash (#2645)
Only crash has the policy controller installed for now.
1 parent bf02544 commit 799f044

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

jetty/deploy-nomulus-for-env.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ while read line
3333
do
3434
parts=(${line})
3535
echo "Updating cluster ${parts[0]} in location ${parts[1]}..."
36-
gcloud container fleet memberships get-credentials "${parts[0]}" --project "${project}"
36+
if [[ ${environment} == "crash" ]]
37+
then
38+
gcloud container fleet memberships get-credentials "${parts[0]}" --project "${project}"
39+
else
40+
gcloud container clusters get-credentials "${parts[0]}" \
41+
--project "${project}" --location "${parts[1]}"
42+
fi
3743
for service in frontend backend pubapi console
3844
do
3945
sed s/GCP_PROJECT/"${project}"/g "./kubernetes/nomulus-${service}.yaml" | \

0 commit comments

Comments
 (0)