Skip to content

Commit

Permalink
Make kubernetes#19601 backward compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrzadkowski committed Feb 25, 2016
1 parent a7f0690 commit 6f6cb45
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions build/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,13 @@ function kube::release::clean_cruft() {
find ${RELEASE_STAGE} -name '.DS*' -exec rm {} \;
}

function kube::release::package_hyperkube() {
# If we have these variables set then we want to build all docker images.
if [[ -n "${KUBE_DOCKER_IMAGE_TAG-}" && -n "${KUBE_DOCKER_REGISTRY-}" ]]; then
REGISTRY="${KUBE_DOCKER_REGISTRY}" VERSION="${KUBE_DOCKER_IMAGE_TAG}" make -C cluster/images/hyperkube/ build
fi
}

function kube::release::package_tarballs() {
# Clean out any old releases
rm -rf "${RELEASE_DIR}"
Expand Down
1 change: 1 addition & 0 deletions build/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ fi

kube::build::copy_output
kube::release::package_tarballs
kube::release::package_hyperkube
2 changes: 0 additions & 2 deletions release/build-official-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ export KUBE_DOCKER_REGISTRY="gcr.io/google_containers"
export KUBE_DOCKER_IMAGE_TAG="${KUBE_RELEASE_VERSION}"

make release
# We don't want to include this in 'make release' as it'd slow down every day development cycle.
REGISTRY="${KUBE_DOCKER_REGISTRY}" VERSION="${KUBE_DOCKER_IMAGE_TAG}" make -C cluster/images/hyperkube/ build

if ${KUBE_BUILD_DIR}/cluster/kubectl.sh version | grep Client | grep dirty; then
echo "!!! Tag at invalid point, or something else is bad. Build is dirty. Don't push this build." >&2
Expand Down

0 comments on commit 6f6cb45

Please sign in to comment.