From b0253c88eb15118043b03b936ccf06de3101be4e Mon Sep 17 00:00:00 2001 From: Joe Beda Date: Mon, 3 Nov 2014 16:59:17 -0800 Subject: [PATCH] Slim down full release tar --- build/common.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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.