2 NAME=$(/consul/bin/kubectl -n {{ include "common.namespace" . }} get pod | grep -o "aai-sparky-be[^[:space:]]*")
4 if [ -n "$NAME" ]; then
5 if /consul/bin/kubectl -n {{ include "common.namespace" . }} exec -it $NAME -- ps -efww | grep 'java' | grep 'sparky' > /dev/null; then
7 echo Success. UI Backend Service process is running. 2>&1
10 echo Failed. UI Backend Service process is not running. 2>&1
14 echo Failed. UI Backend Service container is offline. 2>&1