@@ -165,6 +165,8 @@ kube::golang::dedup() {
165
165
# KUBE_SUPPORTED* vars at the top of this file.
166
166
declare -a -g KUBE_SERVER_PLATFORMS
167
167
declare -a -g KUBE_CLIENT_PLATFORMS
168
+ declare -a -g KUBE_NODE_PLATFORMS
169
+ declare -a -g KUBE_TEST_PLATFORMS
168
170
kube::golang::setup_platforms () {
169
171
if [[ -n " ${KUBE_BUILD_PLATFORMS:- } " ]]; then
170
172
# KUBE_BUILD_PLATFORMS needs to be read into an array before the next
@@ -206,19 +208,22 @@ kube::golang::setup_platforms() {
206
208
elif [[ " ${KUBE_FASTBUILD:- } " == " true" ]]; then
207
209
KUBE_SERVER_PLATFORMS=(linux/amd64)
208
210
readonly KUBE_SERVER_PLATFORMS
209
- readonly KUBE_NODE_PLATFORMS=(linux/amd64)
211
+ KUBE_NODE_PLATFORMS=(linux/amd64)
212
+ readonly KUBE_NODE_PLATFORMS
210
213
if [[ " ${KUBE_BUILDER_OS:- } " == " darwin" * ]]; then
211
- readonly KUBE_TEST_PLATFORMS=(
214
+ KUBE_TEST_PLATFORMS=(
212
215
darwin/amd64
213
216
linux/amd64
214
217
)
218
+ readonly KUBE_TEST_PLATFORMS
215
219
KUBE_CLIENT_PLATFORMS=(
216
220
darwin/amd64
217
221
linux/amd64
218
222
)
219
223
readonly KUBE_CLIENT_PLATFORMS
220
224
else
221
- readonly KUBE_TEST_PLATFORMS=(linux/amd64)
225
+ KUBE_TEST_PLATFORMS=(linux/amd64)
226
+ readonly KUBE_TEST_PLATFORMS
222
227
KUBE_CLIENT_PLATFORMS=(linux/amd64)
223
228
readonly KUBE_CLIENT_PLATFORMS
224
229
fi
0 commit comments