mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
added warning message error about not running kubelet if not darwin/linux to my check
This commit is contained in:
parent
9ccade5939
commit
f79094e8a2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user