Skip to content

Commit

Permalink
Cerberus prow (#131)
Browse files Browse the repository at this point in the history
* adding cleanup in prow_run;

* changing wording

* adding kill of sub cerberus commands
  • Loading branch information
paigerube14 authored Aug 28, 2023
1 parent 79c9019 commit 07eebb3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cerberus/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@

set -ex

ls
function cerberus_cleanup() {
echo "End running cerberus scenarios"
PID=$( ps -a | grep -E 'cerberus' | grep -v "grep" | awk '{print $1}' > pid_list.txt)
for p in $(cat pid_list.txt); do
kill -9 $p
done
exit 0

}
trap cerberus_cleanup SIGTERM SIGINT

export KUBECONFIG=$CERBERUS_KUBECONFIG

Expand Down

0 comments on commit 07eebb3

Please sign in to comment.