Skip to content

Commit db7f14c

Browse files
authored
Merge pull request #2249 from justaugustus/bullseye-pt-three
images: Build bullseye variants (part three)
2 parents ef10c23 + 26f2d08 commit db7f14c

File tree

8 files changed

+37
-16
lines changed

8 files changed

+37
-16
lines changed

dependencies.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -389,18 +389,16 @@ dependencies:
389389
- name: "Debian: codename (next candidate)"
390390
version: bullseye
391391
refPaths:
392-
# TODO(bullseye): Uncomment as part of https://github.com/kubernetes/release/pull/2249
393-
#- path: images/build/cross/variants.yaml
394-
# match: "OS_CODENAME: '(bullseye|buster)'"
392+
- path: images/build/cross/variants.yaml
393+
match: "OS_CODENAME: '(bullseye|buster)'"
395394
- path: images/build/debian-base/variants.yaml
396395
match: "CONFIG: '(bullseye|buster)'"
397396
- path: images/build/go-runner/variants.yaml
398397
match: "OS_CODENAME: '(bullseye|buster)'"
399398
- path: images/releng/ci/variants.yaml
400399
match: "OS_CODENAME: '(bullseye|buster)'"
401-
# TODO(bullseye): Uncomment as part of https://github.com/kubernetes/release/pull/2249
402-
#- path: images/releng/k8s-ci-builder/variants.yaml
403-
# match: "OS_CODENAME: '(bullseye|buster)'"
400+
- path: images/releng/k8s-ci-builder/variants.yaml
401+
match: "OS_CODENAME: '(bullseye|buster)'"
404402

405403
- name: "k8s.gcr.io/build-image/debian-base"
406404
version: buster-v1.9.0
@@ -450,9 +448,8 @@ dependencies:
450448
refPaths:
451449
- path: images/build/debian-iptables/variants.yaml
452450
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-]+)*))?)'"
453-
# TODO(bullseye): Uncomment as part of https://github.com/kubernetes/release/pull/2249
454-
#- path: images/build/setcap/variants.yaml
455-
# 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-]+)*))?)'"
451+
- path: images/build/setcap/variants.yaml
452+
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-]+)*))?)'"
456453

457454
- name: "k8s.gcr.io/build-image/debian-iptables (next candidate)"
458455
version: bullseye-v1.0.0
@@ -461,7 +458,7 @@ dependencies:
461458
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-]+)*))?)'"
462459

463460
- name: "k8s.gcr.io/build-image/setcap (next candidate)"
464-
version: buster-v2.0.4
461+
version: bullseye-v1.0.0
465462
refPaths:
466463
- path: images/build/setcap/variants.yaml
467464
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-]+)*))?)'"

hack/init-buildx.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ fi
6060

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

6868
# Ensure we use a builder that can leverage it (the default on linux will not)

images/build/cross/cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# See https://cloud.google.com/cloud-build/docs/build-config
2-
timeout: 3600s
2+
timeout: 5400s
33

44
options:
55
substitution_option: ALLOW_LOOSE

images/build/cross/variants.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
variants:
2+
v1.23-go1.17-bullseye:
3+
CONFIG: 'go1.17-bullseye'
4+
TYPE: 'default'
5+
IMAGE_VERSION: 'v1.23.0-go1.17.1-bullseye.0'
6+
KUBERNETES_VERSION: 'v1.23.0'
7+
GO_VERSION: '1.17.1'
8+
GO_MAJOR_VERSION: '1.17'
9+
OS_CODENAME: 'bullseye'
10+
REVISION: '0'
11+
PROTOBUF_VERSION: '3.7.0'
212
v1.23-go1.17-buster:
313
CONFIG: 'go1.17-buster'
414
TYPE: 'default'

images/build/setcap/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,9 @@ ARG BASEIMAGE
1616

1717
FROM ${BASEIMAGE}
1818

19+
ARG BASEIMAGE
20+
1921
RUN apt-get update \
22+
&& CODENAME=$(. /etc/os-release; echo $VERSION_CODENAME) && \
23+
if [ "bullseye" = "$CODENAME" ]; then apt-get -y --allow-change-held-packages install libcap2; fi \
2024
&& apt-get -y --no-install-recommends install libcap2-bin

images/build/setcap/variants.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
variants:
2+
# Debian 11 - Kubernetes 1.23 and newer
3+
bullseye:
4+
CONFIG: 'bullseye'
5+
IMAGE_VERSION: 'bullseye-v1.0.0'
6+
DEBIAN_BASE_VERSION: 'bullseye-v1.0.0'
7+
# Debian 10 - Kubernetes 1.22 and older
28
buster:
39
CONFIG: 'buster'
410
IMAGE_VERSION: 'buster-v2.0.4'

images/releng/k8s-ci-builder/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ RUN echo "Installing Packages ..." \
7575
mercurial \
7676
pkg-config \
7777
procps \
78-
python \
79-
python-dev \
80-
python-pip \
78+
python3 \
79+
python3-dev \
80+
python3-pip \
8181
rsync \
8282
software-properties-common \
8383
unzip \

images/releng/k8s-ci-builder/variants.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ variants:
33
CONFIG: default
44
GO_VERSION: '1.16.8'
55
OS_CODENAME: 'buster'
6+
next:
7+
CONFIG: next
8+
GO_VERSION: '1.17.1'
9+
OS_CODENAME: 'bullseye'
610
'1.23':
711
CONFIG: '1.23'
812
GO_VERSION: '1.17.1'

0 commit comments

Comments
 (0)