Merge pull request #3861 from BenTheElder/bump-base-static

bump base image with statically linked plugins, improve new push-node.sh, adopt 1.32.2
This commit is contained in:
Kubernetes Prow Robot
2025-02-14 10:40:21 -08:00
committed by GitHub
3 changed files with 11 additions and 3 deletions

View File

@@ -25,13 +25,20 @@ IMAGE_NAME="${IMAGE_NAME:-node}"
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." &> /dev/null && pwd -P)"
cd "${REPO_ROOT}"
VERSION="$1"
VERSION="${1:-}"
if [[ -z "${VERSION}" ]]; then
echo >&2 "version argument not supplied, looking up current stable ..."
VERSION="$(curl -sL https://dl.k8s.io/release/stable.txt)"
fi
echo >&2 "will build node image for Kubernetes ${VERSION} ..."
# ensure we have up to date kind
echo >&2 "building kind ..."
make build
# ensure we have qemu setup so we can run cross-arch images
# TODO: dedupe specifying this image?
echo >&2 "ensuring binfmt_misc ..."
docker run --rm --privileged tonistiigi/binfmt:qemu-v7.0.0-28@sha256:66e11bea77a5ea9d6f0fe79b57cd2b189b5d15b93a2bdb925be22949232e4e55 --install all
# NOTE: adding platforms is costly in terms of build time
@@ -48,6 +55,7 @@ IMAGE="${REGISTRY}/${IMAGE_NAME}:${VERSION}"
images=()
for arch in "${__arches__[@]}"; do
image="${REGISTRY}/${IMAGE_NAME}-${arch}:${VERSION}"
echo >&2 "building ${image} ..."
"${REPO_ROOT}/bin/kind" build node-image --image="${image}" --arch="${arch}" "${VERSION}"
images+=("${image}")
done

View File

@@ -18,4 +18,4 @@ limitations under the License.
package defaults
// Image is the default for the Config.Image field, aka the default node image.
const Image = "kindest/node:v1.32.1@sha256:6afef2b7f69d627ea7bf27ee6696b6868d18e03bf98167c420df486da4662db6"
const Image = "kindest/node:v1.32.2@sha256:ec2582d73b2982e0c515f6630a6d3af5a599f5f8a830d2f65f09e61600314b88"

View File

@@ -22,4 +22,4 @@ const DefaultImage = "kindest/node:latest"
// DefaultBaseImage is the default base image used
// TODO: come up with a reasonable solution to digest pinning
// https://github.com/moby/moby/issues/43188
const DefaultBaseImage = "docker.io/kindest/base:v20250117-f528b021"
const DefaultBaseImage = "docker.io/kindest/base:v20250212-53ff1fb7"