mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
remove bazel from start-kubemark.sh
This commit is contained in:
parent
f32bfe10b7
commit
bf33ee380a
@ -48,12 +48,6 @@ KUBEMARK_IMAGE_TAG=$(head /dev/urandom | tr -dc 'a-z0-9' | fold -w 6 | head -n 1
|
|||||||
function create-and-upload-hollow-node-image {
|
function create-and-upload-hollow-node-image {
|
||||||
authenticate-docker
|
authenticate-docker
|
||||||
KUBEMARK_IMAGE_REGISTRY="${KUBEMARK_IMAGE_REGISTRY:-${CONTAINER_REGISTRY}/${PROJECT}}"
|
KUBEMARK_IMAGE_REGISTRY="${KUBEMARK_IMAGE_REGISTRY:-${CONTAINER_REGISTRY}/${PROJECT}}"
|
||||||
if [[ "${KUBEMARK_BAZEL_BUILD:-}" =~ ^[yY]$ ]]; then
|
|
||||||
# Build+push the image through bazel.
|
|
||||||
touch WORKSPACE # Needed for bazel.
|
|
||||||
build_cmd=("bazel" "run" "//cluster/images/kubemark:push" "--define" "REGISTRY=${KUBEMARK_IMAGE_REGISTRY}" "--define" "IMAGE_TAG=${KUBEMARK_IMAGE_TAG}")
|
|
||||||
run-cmd-with-retries "${build_cmd[@]}"
|
|
||||||
else
|
|
||||||
# Build+push the image through makefile.
|
# Build+push the image through makefile.
|
||||||
build_cmd=("make" "${KUBEMARK_IMAGE_MAKE_TARGET}")
|
build_cmd=("make" "${KUBEMARK_IMAGE_MAKE_TARGET}")
|
||||||
MAKE_DIR="${KUBE_ROOT}/cluster/images/kubemark"
|
MAKE_DIR="${KUBE_ROOT}/cluster/images/kubemark"
|
||||||
@ -69,7 +63,6 @@ function create-and-upload-hollow-node-image {
|
|||||||
REGISTRY=${KUBEMARK_IMAGE_REGISTRY} IMAGE_TAG=${KUBEMARK_IMAGE_TAG} run-cmd-with-retries "${build_cmd[@]}"
|
REGISTRY=${KUBEMARK_IMAGE_REGISTRY} IMAGE_TAG=${KUBEMARK_IMAGE_TAG} run-cmd-with-retries "${build_cmd[@]}"
|
||||||
rm kubemark
|
rm kubemark
|
||||||
cd "$CURR_DIR"
|
cd "$CURR_DIR"
|
||||||
fi
|
|
||||||
echo "Created and uploaded the kubemark hollow-node image to docker registry."
|
echo "Created and uploaded the kubemark hollow-node image to docker registry."
|
||||||
# Cleanup the kubemark image after the script exits.
|
# Cleanup the kubemark image after the script exits.
|
||||||
if [[ "${CLEANUP_KUBEMARK_IMAGE:-}" == "true" ]]; then
|
if [[ "${CLEANUP_KUBEMARK_IMAGE:-}" == "true" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user