mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
Merge pull request #21372 from gmarek/gather
Auto commit by PR queue bot
This commit is contained in:
@@ -56,12 +56,15 @@ echo "... calling validate-cluster" >&2
|
|||||||
if [[ "${EXIT_ON_WEAK_ERROR}" == "true" ]]; then
|
if [[ "${EXIT_ON_WEAK_ERROR}" == "true" ]]; then
|
||||||
validate-cluster
|
validate-cluster
|
||||||
else
|
else
|
||||||
if ! validate-cluster; then
|
validate-cluster
|
||||||
validate_result="$?"
|
validate_result="$?"
|
||||||
|
if [[ ${validate_result} != "0" ]]; then
|
||||||
if [[ "${validate_result}" == "1" ]]; then
|
if [[ "${validate_result}" == "1" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
elif [[ "${validate_result}" == "2" ]]; then
|
elif [[ "${validate_result}" == "2" ]]; then
|
||||||
echo "...ignoring non-fatal errors in validate-cluster" >&2
|
echo "...ignoring non-fatal errors in validate-cluster" >&2
|
||||||
|
else
|
||||||
|
echo "Got unknown validate result: ${validate_result}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user