mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Stop building the kubernetes-test mondo tarball
This commit is contained in:
parent
512eccac1f
commit
967032138f
@ -32,11 +32,6 @@ KUBE_BUILD_HYPERKUBE=${KUBE_BUILD_HYPERKUBE:-y}
|
|||||||
KUBE_BUILD_CONFORMANCE=${KUBE_BUILD_CONFORMANCE:-y}
|
KUBE_BUILD_CONFORMANCE=${KUBE_BUILD_CONFORMANCE:-y}
|
||||||
KUBE_BUILD_PULL_LATEST_IMAGES=${KUBE_BUILD_PULL_LATEST_IMAGES:-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
|
# Validate a ci version
|
||||||
#
|
#
|
||||||
# Globals:
|
# Globals:
|
||||||
@ -526,48 +521,6 @@ function kube::release::package_test_tarballs() {
|
|||||||
|
|
||||||
local portable_tarball_name="${RELEASE_TARS}/kubernetes-test-portable.tar.gz"
|
local portable_tarball_name="${RELEASE_TARS}/kubernetes-test-portable.tar.gz"
|
||||||
kube::release::create_tarball "${portable_tarball_name}" "${release_stage}/.."
|
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 <<EOF > "${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.
|
# This is all the platform-independent stuff you need to run/install kubernetes.
|
||||||
|
@ -36,9 +36,6 @@ release_filegroup(
|
|||||||
for_test = [
|
for_test = [
|
||||||
":kubernetes-test-portable.tar.gz",
|
":kubernetes-test-portable.tar.gz",
|
||||||
":kubernetes-test-{OS}-{ARCH}.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()]
|
) 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 <<EOF >$@
|
|
||||||
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(
|
pkg_tar(
|
||||||
name = "kubernetes-test-portable",
|
name = "kubernetes-test-portable",
|
||||||
srcs = ["//build:test-portable-targets"],
|
srcs = ["//build:test-portable-targets"],
|
||||||
|
Loading…
Reference in New Issue
Block a user