mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
not walking directory if KUBE_BUILD_PLATFORMS is given
This commit is contained in:
parent
8ae26096f7
commit
a88d25f9ad
@ -125,8 +125,13 @@ function kube::release::package_src_tarball() {
|
|||||||
# Package up all of the cross compiled clients. Over time this should grow into
|
# Package up all of the cross compiled clients. Over time this should grow into
|
||||||
# a full SDK
|
# a full SDK
|
||||||
function kube::release::package_client_tarballs() {
|
function kube::release::package_client_tarballs() {
|
||||||
# Find all of the built client binaries
|
# Find all of the built client binaries
|
||||||
for platform_long in "${LOCAL_OUTPUT_BINPATH}"/*/*; do
|
local long_platforms=("${LOCAL_OUTPUT_BINPATH}"/*/*)
|
||||||
|
if [[ -n ${KUBE_BUILD_PLATFORMS-} ]]; then
|
||||||
|
read -ra long_platforms <<< "${KUBE_BUILD_PLATFORMS}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for platform_long in "${long_platforms[@]}"; do
|
||||||
local platform
|
local platform
|
||||||
local platform_tag
|
local platform_tag
|
||||||
platform=${platform_long##${LOCAL_OUTPUT_BINPATH}/} # Strip LOCAL_OUTPUT_BINPATH
|
platform=${platform_long##${LOCAL_OUTPUT_BINPATH}/} # Strip LOCAL_OUTPUT_BINPATH
|
||||||
|
Loading…
Reference in New Issue
Block a user