Skip to content

images: Build bullseye variants (part three) #2249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,18 +389,16 @@ dependencies:
- name: "Debian: codename (next candidate)"
version: bullseye
refPaths:
# TODO(bullseye): Uncomment as part of https://github.com/kubernetes/release/pull/2249
#- path: images/build/cross/variants.yaml
# match: "OS_CODENAME: '(bullseye|buster)'"
- path: images/build/cross/variants.yaml
match: "OS_CODENAME: '(bullseye|buster)'"
- path: images/build/debian-base/variants.yaml
match: "CONFIG: '(bullseye|buster)'"
- path: images/build/go-runner/variants.yaml
match: "OS_CODENAME: '(bullseye|buster)'"
- path: images/releng/ci/variants.yaml
match: "OS_CODENAME: '(bullseye|buster)'"
# TODO(bullseye): Uncomment as part of https://github.com/kubernetes/release/pull/2249
#- path: images/releng/k8s-ci-builder/variants.yaml
# match: "OS_CODENAME: '(bullseye|buster)'"
- path: images/releng/k8s-ci-builder/variants.yaml
match: "OS_CODENAME: '(bullseye|buster)'"

- name: "k8s.gcr.io/build-image/debian-base"
version: buster-v1.9.0
Expand Down Expand Up @@ -450,9 +448,8 @@ dependencies:
refPaths:
- path: images/build/debian-iptables/variants.yaml
match: "DEBIAN_BASE_VERSION: '(bullseye|buster)-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
# TODO(bullseye): Uncomment as part of https://github.com/kubernetes/release/pull/2249
#- path: images/build/setcap/variants.yaml
# match: "DEBIAN_BASE_VERSION: '(bullseye|buster)-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
- path: images/build/setcap/variants.yaml
match: "DEBIAN_BASE_VERSION: '(bullseye|buster)-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"

- name: "k8s.gcr.io/build-image/debian-iptables (next candidate)"
version: bullseye-v1.0.0
Expand All @@ -461,7 +458,7 @@ dependencies:
match: "IMAGE_VERSION: '(bullseye|buster)-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"

- name: "k8s.gcr.io/build-image/setcap (next candidate)"
version: buster-v2.0.4
version: bullseye-v1.0.0
refPaths:
- path: images/build/setcap/variants.yaml
match: "IMAGE_VERSION: '(bullseye|buster)-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
Expand Down
4 changes: 2 additions & 2 deletions hack/init-buildx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ fi

# Ensure qemu is in binfmt_misc
# NOTE: Please always pin this to a digest for predictability/auditability
# Last updated: 08/21/2020
# Last updated: 09/18/2021
if [ "$(uname)" == 'Linux' ]; then
docker run --rm --privileged multiarch/qemu-user-static@sha256:c772ee1965aa0be9915ee1b018a0dd92ea361b4fa1bcab5bbc033517749b2af4 --reset -p yes
docker run --rm --privileged multiarch/qemu-user-static:5.2.0-2@sha256:14ef836763dd8a1d69927699811f89338b129faa3bd9eb52cd696bc3d84aa81a --reset -p yes
fi

# Ensure we use a builder that can leverage it (the default on linux will not)
Expand Down
2 changes: 1 addition & 1 deletion images/build/cross/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# See https://cloud.google.com/cloud-build/docs/build-config
timeout: 3600s
timeout: 5400s

options:
substitution_option: ALLOW_LOOSE
Expand Down
10 changes: 10 additions & 0 deletions images/build/cross/variants.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
variants:
v1.23-go1.17-bullseye:
CONFIG: 'go1.17-bullseye'
TYPE: 'default'
IMAGE_VERSION: 'v1.23.0-go1.17.1-bullseye.0'
KUBERNETES_VERSION: 'v1.23.0'
GO_VERSION: '1.17.1'
GO_MAJOR_VERSION: '1.17'
OS_CODENAME: 'bullseye'
REVISION: '0'
PROTOBUF_VERSION: '3.7.0'
v1.23-go1.17-buster:
CONFIG: 'go1.17-buster'
TYPE: 'default'
Expand Down
4 changes: 4 additions & 0 deletions images/build/setcap/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@ ARG BASEIMAGE

FROM ${BASEIMAGE}

ARG BASEIMAGE

RUN apt-get update \
&& CODENAME=$(. /etc/os-release; echo $VERSION_CODENAME) && \
if [ "bullseye" = "$CODENAME" ]; then apt-get -y --allow-change-held-packages install libcap2; fi \
&& apt-get -y --no-install-recommends install libcap2-bin
6 changes: 6 additions & 0 deletions images/build/setcap/variants.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
variants:
# Debian 11 - Kubernetes 1.23 and newer
bullseye:
CONFIG: 'bullseye'
IMAGE_VERSION: 'bullseye-v1.0.0'
DEBIAN_BASE_VERSION: 'bullseye-v1.0.0'
# Debian 10 - Kubernetes 1.22 and older
buster:
CONFIG: 'buster'
IMAGE_VERSION: 'buster-v2.0.4'
Expand Down
6 changes: 3 additions & 3 deletions images/releng/k8s-ci-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ RUN echo "Installing Packages ..." \
mercurial \
pkg-config \
procps \
python \
python-dev \
python-pip \
python3 \
python3-dev \
python3-pip \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any issues if you use python3? I guess the other it is deprecated already

rsync \
software-properties-common \
unzip \
Expand Down
4 changes: 4 additions & 0 deletions images/releng/k8s-ci-builder/variants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ variants:
CONFIG: default
GO_VERSION: '1.16.8'
OS_CODENAME: 'buster'
next:
CONFIG: next
GO_VERSION: '1.17.1'
OS_CODENAME: 'bullseye'
'1.23':
CONFIG: '1.23'
GO_VERSION: '1.17.1'
Expand Down