mirror of https://github.com/kubernetes/kops.git
Detect supported architecture during node bootstrap
This commit is contained in:
parent
33c242c896
commit
41defca8fe
|
|
@ -137,6 +137,17 @@ function try-download-release() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function download-release() {
|
function download-release() {
|
||||||
|
case "$(uname -m)" in
|
||||||
|
x86_64*|i?86_64*|amd64*)
|
||||||
|
NODEUP_URL="${NODEUP_URL}"
|
||||||
|
NODEUP_HASH="${NODEUP_HASH}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unsupported host arch: $(uname -m)" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# In case of failure checking integrity of release, retry.
|
# In case of failure checking integrity of release, retry.
|
||||||
cd ${INSTALL_DIR}/bin
|
cd ${INSTALL_DIR}/bin
|
||||||
until try-download-release; do
|
until try-download-release; do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue