Skip to content

Commit

Permalink
fix false error
Browse files Browse the repository at this point in the history
  • Loading branch information
unfor19 committed Feb 27, 2021
1 parent 3a9f8c5 commit 42d9612
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kubernetes/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ set -e
set -o pipefail
kubectl get pods
POD_PROMETHEUS=$(kubectl get pods --selector=app=prometheus | grep 1/1.*Running | cut -f 1 -d " " 2>/dev/null || true)
[[ -z ${POD_PROMETHEUS} ]] && echo "The container ${POD_PROMETHEUS} is not running, execute first docker-compose/deploy_stack.sh"
if [[ -z ${POD_PROMETHEUS} ]]; then
echo "The container ${POD_PROMETHEUS} is not running, execute first docker-compose/deploy_stack.sh"
exit 1
fi

0 comments on commit 42d9612

Please sign in to comment.