Skip to content

Commit a8217d3

Browse files
authored
Merge pull request kubernetes#87836 from dixudx/fix_env_KBP
not walking directory if KUBE_BUILD_PLATFORMS is given
2 parents ad4bd38 + a88d25f commit a8217d3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build/lib/release.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,13 @@ function kube::release::package_src_tarball() {
125125
# Package up all of the cross compiled clients. Over time this should grow into
126126
# a full SDK
127127
function kube::release::package_client_tarballs() {
128-
# Find all of the built client binaries
129-
for platform_long in "${LOCAL_OUTPUT_BINPATH}"/*/*; do
128+
# Find all of the built client binaries
129+
local long_platforms=("${LOCAL_OUTPUT_BINPATH}"/*/*)
130+
if [[ -n ${KUBE_BUILD_PLATFORMS-} ]]; then
131+
read -ra long_platforms <<< "${KUBE_BUILD_PLATFORMS}"
132+
fi
133+
134+
for platform_long in "${long_platforms[@]}"; do
130135
local platform
131136
local platform_tag
132137
platform=${platform_long##${LOCAL_OUTPUT_BINPATH}/} # Strip LOCAL_OUTPUT_BINPATH

0 commit comments

Comments
 (0)