mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 10:18:39 +00:00
[dx] fix: exclude ps from self destructing enviroments check
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
# Fail the test if any HelmRelease is not Ready
|
||||
if kubectl get hr -A | grep -v " True " | grep -v NAME; then
|
||||
kubectl get hr -A
|
||||
fail "Some HelmReleases failed to reconcile"
|
||||
echo "Some HelmReleases failed to reconcile" >&2
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ while [ $# -gt 0 ]; do
|
||||
done
|
||||
|
||||
check_once() {
|
||||
OWN_PIDS=$(pstree -p $$ | grep -o '[0-9]\+' | sort -u)
|
||||
ALL_PROCS=$(ps -eo pid=,comm=)
|
||||
OWN_PIDS=$(pstree -p $$ | grep -o '[0-9]\+' | sort -u)
|
||||
|
||||
EXTERNAL_PIDS=$(
|
||||
echo "$ALL_PROCS" | while read -r PID CMD; do
|
||||
@@ -29,7 +29,7 @@ check_once() {
|
||||
echo "$OWN_PIDS" | grep -q -x "$PID" && continue
|
||||
|
||||
case "$CMD" in
|
||||
*qemu*) continue ;;
|
||||
*qemu*|ps) continue ;;
|
||||
esac
|
||||
|
||||
echo "PID=$PID CMD=$CMD"
|
||||
|
||||
Reference in New Issue
Block a user