@@ -163,6 +163,8 @@ kube::golang::dedup() {
163
163
# to readonly.
164
164
# The configured vars will only contain platforms allowed by the
165
165
# KUBE_SUPPORTED* vars at the top of this file.
166
+ declare -a -g KUBE_SERVER_PLATFORMS
167
+ declare -a -g KUBE_CLIENT_PLATFORMS
166
168
kube::golang::setup_platforms () {
167
169
if [[ -n " ${KUBE_BUILD_PLATFORMS:- } " ]]; then
168
170
# KUBE_BUILD_PLATFORMS needs to be read into an array before the next
@@ -202,20 +204,23 @@ kube::golang::setup_platforms() {
202
204
readonly KUBE_CLIENT_PLATFORMS
203
205
204
206
elif [[ " ${KUBE_FASTBUILD:- } " == " true" ]]; then
205
- readonly KUBE_SERVER_PLATFORMS=(linux/amd64)
207
+ KUBE_SERVER_PLATFORMS=(linux/amd64)
208
+ readonly KUBE_SERVER_PLATFORMS
206
209
readonly KUBE_NODE_PLATFORMS=(linux/amd64)
207
210
if [[ " ${KUBE_BUILDER_OS:- } " == " darwin" * ]]; then
208
211
readonly KUBE_TEST_PLATFORMS=(
209
212
darwin/amd64
210
213
linux/amd64
211
214
)
212
- readonly KUBE_CLIENT_PLATFORMS=(
215
+ KUBE_CLIENT_PLATFORMS=(
213
216
darwin/amd64
214
217
linux/amd64
215
- )
218
+ )
219
+ readonly KUBE_CLIENT_PLATFORMS
216
220
else
217
221
readonly KUBE_TEST_PLATFORMS=(linux/amd64)
218
- readonly KUBE_CLIENT_PLATFORMS=(linux/amd64)
222
+ KUBE_CLIENT_PLATFORMS=(linux/amd64)
223
+ readonly KUBE_CLIENT_PLATFORMS
219
224
fi
220
225
else
221
226
KUBE_SERVER_PLATFORMS=(" ${KUBE_SUPPORTED_SERVER_PLATFORMS[@]} " )
0 commit comments