File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -161,9 +161,9 @@ DOWNLOAD_URL_PREFIX="${KUBERNETES_RELEASE_URL}/${KUBE_VERSION}"
161
161
SERVER_PLATFORM=" linux"
162
162
SERVER_ARCH=" ${KUBERNETES_SERVER_ARCH:- amd64} "
163
163
SERVER_TAR=" kubernetes-server-${SERVER_PLATFORM} -${SERVER_ARCH} .tar.gz"
164
- if [[ -n " ${KUBERNETES_NODE_PLATFORM-} " ]]; then
165
- NODE_PLATFORM=" ${KUBERNETES_NODE_PLATFORM} "
166
- NODE_ARCH=" ${KUBERNETES_NODE_ARCH:- amd64 } "
164
+ if [[ -n " ${KUBERNETES_NODE_PLATFORM-} " || -n " ${KUBERNETES_NODE_ARCH-} " ]]; then
165
+ NODE_PLATFORM=" ${KUBERNETES_NODE_PLATFORM: ${SERVER_PLATFORM} } "
166
+ NODE_ARCH=" ${KUBERNETES_NODE_ARCH: ${SERVER_ARCH} } "
167
167
NODE_TAR=" kubernetes-node-${NODE_PLATFORM} -${NODE_ARCH} .tar.gz"
168
168
fi
169
169
Original file line number Diff line number Diff line change 38
38
# * arm64
39
39
#
40
40
# Set KUBERNETES_NODE_PLATFORM to choose the platform for which to download
41
- # the node binaries. If not set (the default) no node binaries will be
42
- # downloaded. The options are:
41
+ # the node binaries. If none of KUBERNETES_NODE_PLATFORM and
42
+ # KUBERNETES_NODE_ARCH is set, no node binaries will be downloaded. If only
43
+ # one of the two is set, the other will be defaulted to the
44
+ # KUBERNETES_SERVER_PLATFORM/ARCH.
43
45
# * linux
44
46
# * windows
45
47
#
46
- # Set KUBERNETES_NODE_ARCH to choose the node architecture to download:
48
+ # Set KUBERNETES_NODE_ARCH to choose the node architecture to download the
49
+ # node binaries. If none of KUBERNETES_NODE_PLATFORM and
50
+ # KUBERNETES_NODE_ARCH is set, no node binaries will be downloaded. If only
51
+ # one of the two is set, the other will be defaulted to the
52
+ # KUBERNETES_SERVER_PLATFORM/ARCH.
47
53
# * amd64 [default]
48
54
# * arm
49
55
# * arm64
You can’t perform that action at this time.
0 commit comments