added warning message error about not running kubelet if not darwin/linux to my check

This commit is contained in:
Alejandro Escobar 2017-01-26 13:11:27 -08:00
parent 9ccade5939
commit f79094e8a2

View File

@ -736,7 +736,7 @@ fi
if [[ "${START_MODE}" != "nokubelet" ]]; then if [[ "${START_MODE}" != "nokubelet" ]]; then
## TODO remove this check if/when kubelet is supported on darwin ## TODO remove this check if/when kubelet is supported on darwin
# Detect the OS name/arch so that we can find our binary # Detect the OS name/arch and display appropriate error.
case "$(uname -s)" in case "$(uname -s)" in
Darwin) Darwin)
warning "kubelet is not currently supported in darwin, kubelet aborted." warning "kubelet is not currently supported in darwin, kubelet aborted."
@ -746,7 +746,7 @@ if [[ "${START_MODE}" != "nokubelet" ]]; then
start_kubelet start_kubelet
;; ;;
*) *)
echo "Unsupported host OS. Must be Linux or Mac OS X." >&2 warning "Unsupported host OS. Must be Linux or Mac OS X, kubelet aborted."
;; ;;
esac esac
fi fi