Commit 237105fd authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #21372 from gmarek/gather

Auto commit by PR queue bot
parents a5bb33bb 024322a6
......@@ -56,12 +56,15 @@ echo "... calling validate-cluster" >&2
if [[ "${EXIT_ON_WEAK_ERROR}" == "true" ]]; then
validate-cluster
else
if ! validate-cluster; then
validate_result="$?"
validate-cluster
validate_result="$?"
if [[ ${validate_result} != "0" ]]; then
if [[ "${validate_result}" == "1" ]]; then
exit 1
elif [[ "${validate_result}" == "2" ]]; then
echo "...ignoring non-fatal errors in validate-cluster" >&2
else
echo "Got unknown validate result: ${validate_result}"
fi
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment