From 967032138fd7915a1f11bdf3701314a8f53d5f3d Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Tue, 24 Sep 2019 10:34:36 -0700 Subject: [PATCH] Stop building the kubernetes-test mondo tarball --- build/lib/release.sh | 47 ------------------------------- build/release-tars/BUILD | 60 ---------------------------------------- 2 files changed, 107 deletions(-) diff --git a/build/lib/release.sh b/build/lib/release.sh index 73c0bcca62d..7079f7d8771 100644 --- a/build/lib/release.sh +++ b/build/lib/release.sh @@ -32,11 +32,6 @@ KUBE_BUILD_HYPERKUBE=${KUBE_BUILD_HYPERKUBE:-y} KUBE_BUILD_CONFORMANCE=${KUBE_BUILD_CONFORMANCE:-y} KUBE_BUILD_PULL_LATEST_IMAGES=${KUBE_BUILD_PULL_LATEST_IMAGES:-y} -# The mondo test tarball is deprecated as of Kubernetes 1.14, and the default -# will be set to 'n' in a future release. -# See KEP sig-testing/20190118-breaking-apart-the-kubernetes-test-tarball -KUBE_BUILD_MONDO_TEST_TARBALL=${KUBE_BUILD_MONDO_TEST_TARBALL:-y} - # Validate a ci version # # Globals: @@ -526,48 +521,6 @@ function kube::release::package_test_tarballs() { local portable_tarball_name="${RELEASE_TARS}/kubernetes-test-portable.tar.gz" kube::release::create_tarball "${portable_tarball_name}" "${release_stage}/.." - - if [[ "${KUBE_BUILD_MONDO_TEST_TARBALL}" =~ [yY] ]]; then - kube::log::status "Building tarball: test mondo (deprecated by KEP sig-testing/20190118-breaking-apart-the-kubernetes-test-tarball)" - local platform - for platform in "${KUBE_TEST_PLATFORMS[@]}"; do - local test_bins=("${KUBE_TEST_BINARIES[@]}") - if [[ "${platform%/*}" == "windows" ]]; then - test_bins=("${KUBE_TEST_BINARIES_WIN[@]}") - fi - mkdir -p "${release_stage}/platforms/${platform}" - # This fancy expression will expand to prepend a path - # (${LOCAL_OUTPUT_BINPATH}/${platform}/) to every item in the - # test_bins array. - cp "${test_bins[@]/#/${LOCAL_OUTPUT_BINPATH}/${platform}/}" \ - "${release_stage}/platforms/${platform}" - done - for platform in "${KUBE_TEST_SERVER_PLATFORMS[@]}"; do - mkdir -p "${release_stage}/platforms/${platform}" - # This fancy expression will expand to prepend a path - # (${LOCAL_OUTPUT_BINPATH}/${platform}/) to every item in the - # KUBE_TEST_SERVER_BINARIES array. - cp "${KUBE_TEST_SERVER_BINARIES[@]/#/${LOCAL_OUTPUT_BINPATH}/${platform}/}" \ - "${release_stage}/platforms/${platform}" - done - - cat < "${release_stage}/DEPRECATION_NOTICE" -The mondo test tarball containing binaries for all platforms is -DEPRECATED as of Kubernetes 1.14. - -Users of this tarball should migrate to using the platform-specific -tarballs in combination with the "portable" tarball which contains -scripts, test images, and other manifests. - -For more details, please see KEP -sig-testing/20190118-breaking-apart-the-kubernetes-test-tarball. -EOF - - kube::release::clean_cruft - - local package_name="${RELEASE_TARS}/kubernetes-test.tar.gz" - kube::release::create_tarball "${package_name}" "${release_stage}/.." - fi } # This is all the platform-independent stuff you need to run/install kubernetes. diff --git a/build/release-tars/BUILD b/build/release-tars/BUILD index 0785368ecb3..013a844beb9 100644 --- a/build/release-tars/BUILD +++ b/build/release-tars/BUILD @@ -36,9 +36,6 @@ release_filegroup( for_test = [ ":kubernetes-test-portable.tar.gz", ":kubernetes-test-{OS}-{ARCH}.tar.gz", - # TODO(ixdy): remove once the "mondo-test" tarball is deprecated. - # It isn't really mondo under Bazel anyway. - ":kubernetes-test.tar.gz", ], ), ) @@ -189,63 +186,6 @@ pkg_tar( }), ) for arch in archs] for os, archs in SERVER_PLATFORMS.items()] -# The mondo test tarball is deprecated. -pkg_tar( - name = "_test-mondo-bin", - srcs = ["//build:test-targets"], - mode = "0755", - package_dir = select(for_platforms( - for_test = "platforms/{OS}/{ARCH}", - )), - tags = [ - "manual", - "no-cache", - ], - visibility = ["//visibility:private"], -) - -genrule( - name = "kubernetes-test-mondo-deprecation", - outs = ["DEPRECATION_NOTICE"], - cmd = """cat <$@ -The mondo test tarball containing binaries for all platforms is -DEPRECATED as of Kubernetes 1.14. - -Users of this tarball should migrate to using the platform-specific -tarballs in combination with the "portable" tarball which contains -scripts, test images, and other manifests. - -For more details, please see KEP -sig-testing/20190118-breaking-apart-the-kubernetes-test-tarball. -EOF -""", - visibility = ["//visibility:private"], -) - -# The mondo test tarball is deprecated. -# This one was never really correct, anyway, since we can't include -# binaries from multiple platforms in a single tarball. -pkg_tar( - name = "kubernetes-test", - srcs = [ - ":kubernetes-test-mondo-deprecation", - "//build:test-portable-targets", - ], - extension = "tar.gz", - package_dir = "kubernetes", - remap_paths = { - "build/release-tars/DEPRECATION_NOTICE": "DEPRECATION_NOTICE", - }, - strip_prefix = "//", - tags = [ - "manual", - "no-cache", - ], - deps = select(for_platforms( - for_test = [":_test-mondo-bin"], - )), -) - pkg_tar( name = "kubernetes-test-portable", srcs = ["//build:test-portable-targets"],