diff --git a/build/common.sh b/build/common.sh index f20bbed5dc7..a69eaaa3f4c 100644 --- a/build/common.sh +++ b/build/common.sh @@ -547,7 +547,14 @@ function kube::release::package_full_tarball() { rm -rf "${release_stage}" mkdir -p "${release_stage}" - cp -R "${LOCAL_OUTPUT_BINPATH}" "${release_stage}/platforms" + # Copy all of the client binaries in here, but not test or server binaries. + # The server binaries are included with the server binary tarball. + local platform + for platform in "${KUBE_CLIENT_PLATFORMS[@]}"; do + mkdir -p "${release_stage}/platforms/${platform}" + cp "${KUBE_CLIENT_BINARIES[@]/#/${LOCAL_OUTPUT_BINPATH}/${platform}/}" \ + "${release_stage}/platforms/${platform}" + done # We want everything in /cluster except saltbase. That is only needed on the # server.