Skip to content

Commit

Permalink
chore: parallelize cluster allocate script (knative#1992)
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vasek <[email protected]>
  • Loading branch information
matejvasek authored Sep 27, 2023
1 parent b6fb880 commit 5ffdf75
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions hack/allocate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ main() {
echo "${em}Allocating...${me}"

kubernetes
serving
dns
eventing
networking
registry
namespace
dapr_runtime
( set -o pipefail; (serving && dns && networking) 2>&1 | sed -e 's/^/svr /')&
( set -o pipefail; (eventing && namespace) 2>&1 | sed -e 's/^/evt /')&
( set -o pipefail; registry 2>&1 | sed -e 's/^/reg /') &
( set -o pipefail; dapr_runtime 2>&1 | sed -e 's/^/dpr /')&

local job
for job in $(jobs -p); do
wait "$job"
done

next_steps

echo "${em}DONE${me}"
Expand Down

0 comments on commit 5ffdf75

Please sign in to comment.