Skip to content

Commit b62886f

Browse files
committed
debian-base, kube-cross, go-runner, ci, k8s-ci-builder: switch to bookworm
Signed-off-by: Sascha Grunert <[email protected]>
1 parent 3ef59b5 commit b62886f

File tree

14 files changed

+100
-114
lines changed

14 files changed

+100
-114
lines changed

dependencies.yaml

Lines changed: 53 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -151,27 +151,27 @@ dependencies:
151151
match: REVISION:\ '\d+'
152152

153153
# go-runner
154-
- name: "registry.k8s.io/build-image/go-runner (go1.20-bullseye)"
155-
version: v2.3.1-go1.20.5-bullseye.0
154+
- name: "registry.k8s.io/build-image/go-runner (go1.20-bookworm)"
155+
version: v2.3.1-go1.20.5-bookworm.0
156156
refPaths:
157157
- path: images/build/go-runner/variants.yaml
158158
match: v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
159159

160-
- name: "registry.k8s.io/build-image/go-runner: image revision (go1.20-bullseye)"
160+
- name: "registry.k8s.io/build-image/go-runner: image revision (go1.20-bookworm)"
161161
version: 0
162162
refPaths:
163163
- path: images/build/go-runner/Makefile
164164
match: REVISION \?= \d+
165165
- path: images/build/go-runner/variants.yaml
166166
match: REVISION:\ '\d+'
167167

168-
- name: "registry.k8s.io/build-image/go-runner (go1.19-bullseye)"
169-
version: v2.3.1-go1.19.10-bullseye.0
168+
- name: "registry.k8s.io/build-image/go-runner (go1.19-bookworm)"
169+
version: v2.3.1-go1.19.10-bookworm.0
170170
refPaths:
171171
- path: images/build/go-runner/variants.yaml
172172
match: v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
173173

174-
- name: "registry.k8s.io/build-image/go-runner: image revision (go1.19-bullseye)"
174+
- name: "registry.k8s.io/build-image/go-runner: image revision (go1.19-bookworm)"
175175
version: 0
176176
refPaths:
177177
- path: images/build/go-runner/Makefile
@@ -181,16 +181,16 @@ dependencies:
181181

182182
# kube-cross
183183
- name: "registry.k8s.io/build-image/kube-cross (v1.27-go1.20)"
184-
version: v1.27.0-go1.20.5-bullseye.0
184+
version: v1.27.0-go1.20.5-bookworm.0
185185
refPaths:
186186
- path: images/build/cross/variants.yaml
187187
match: "IMAGE_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
188188

189189
- name: "registry.k8s.io/build-image/kube-cross: config variant (v1.27-go1.20)"
190-
version: go1.20-bullseye
190+
version: go1.20-bookworm
191191
refPaths:
192192
- path: images/build/cross/variants.yaml
193-
match: "CONFIG: 'go\\d+.\\d+-bullseye'"
193+
match: "CONFIG: 'go\\d+.\\d+-bookworm'"
194194

195195
- name: "registry.k8s.io/build-image/kube-cross: image revision (v1.27-go1.20)"
196196
version: 0
@@ -201,16 +201,16 @@ dependencies:
201201
match: REVISION:\ '\d+'
202202

203203
- name: "registry.k8s.io/build-image/kube-cross (v1.26-go1.19)"
204-
version: v1.26.0-go1.19.10-bullseye.0
204+
version: v1.26.0-go1.19.10-bookworm.0
205205
refPaths:
206206
- path: images/build/cross/variants.yaml
207207
match: "IMAGE_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
208208

209209
- name: "registry.k8s.io/build-image/kube-cross: config variant (v1.26-go1.19)"
210-
version: go1.19-bullseye
210+
version: go1.19-bookworm
211211
refPaths:
212212
- path: images/build/cross/variants.yaml
213-
match: "CONFIG: 'go\\d+.\\d+-bullseye'"
213+
match: "CONFIG: 'go\\d+.\\d+-bookworm'"
214214

215215
- name: "registry.k8s.io/build-image/kube-cross: image revision (v1.26-go1.19)"
216216
version: 0
@@ -221,16 +221,16 @@ dependencies:
221221
match: REVISION:\ '\d+'
222222

223223
- name: "registry.k8s.io/build-image/kube-cross (v1.25-go1.19)"
224-
version: v1.25.0-go1.19.10-bullseye.0
224+
version: v1.25.0-go1.19.10-bookworm.0
225225
refPaths:
226226
- path: images/build/cross/variants.yaml
227227
match: "IMAGE_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
228228

229229
- name: "registry.k8s.io/build-image/kube-cross: config variant (v1.25-go1.19)"
230-
version: go1.19-bullseye
230+
version: go1.19-bookworm
231231
refPaths:
232232
- path: images/build/cross/variants.yaml
233-
match: "CONFIG: 'go\\d+.\\d+-bullseye'"
233+
match: "CONFIG: 'go\\d+.\\d+-bookworm'"
234234

235235
- name: "registry.k8s.io/build-image/kube-cross: image revision (v1.25-go1.19)"
236236
version: 0
@@ -241,16 +241,16 @@ dependencies:
241241
match: REVISION:\ '\d+'
242242

243243
- name: "registry.k8s.io/build-image/kube-cross (v1.24-go1.19)"
244-
version: v1.24.0-go1.19.10-bullseye.0
244+
version: v1.24.0-go1.19.10-bookworm.0
245245
refPaths:
246246
- path: images/build/cross/variants.yaml
247247
match: "IMAGE_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
248248

249249
- name: "registry.k8s.io/build-image/kube-cross: config variant (v1.24-go1.19)"
250-
version: go1.19-bullseye
250+
version: go1.19-bookworm
251251
refPaths:
252252
- path: images/build/cross/variants.yaml
253-
match: "CONFIG: 'go\\d+.\\d+-bullseye'"
253+
match: "CONFIG: 'go\\d+.\\d+-bookworm'"
254254

255255
- name: "registry.k8s.io/build-image/kube-cross: image revision (v1.24-go1.19)"
256256
version: 0
@@ -305,10 +305,10 @@ dependencies:
305305
match: REVISION:\ '\d+'
306306

307307
- name: "registry.k8s.io/build-image/kube-cross: config variant (next candidate)"
308-
version: go1.20-bullseye
308+
version: go1.20-bookworm
309309
refPaths:
310310
- path: images/build/cross/variants.yaml
311-
match: "CONFIG: 'go\\d+.\\d+-bullseye'"
311+
match: "CONFIG: 'go\\d+.\\d+-bookworm'"
312312

313313
# Golang (previous release branches: 1.26)
314314
- name: "golang (previous release branches: 1.26)"
@@ -379,57 +379,61 @@ dependencies:
379379
- name: "Debian: codename (default)"
380380
version: bullseye
381381
refPaths:
382-
- path: images/build/cross/Makefile
383-
match: OS_CODENAME\ \?=\ bullseye
384-
- path: images/build/cross/variants.yaml
385-
match: "OS_CODENAME: 'bullseye'"
386-
- path: images/build/debian-base/Makefile
387-
match: CONFIG\ \?=\ bullseye
388-
- path: images/build/debian-base/variants.yaml
389-
match: "CONFIG: 'bullseye'"
382+
# TODO: uncomment once bookworm is the default
383+
# - path: images/build/cross/Makefile
384+
# match: OS_CODENAME\ \?=\ bullseye
385+
# - path: images/build/cross/variants.yaml
386+
# match: "OS_CODENAME: 'bullseye'"
387+
# TODO: uncomment once bookworm is the default
388+
# - path: images/build/debian-base/Makefile
389+
# match: CONFIG\ \?=\ bullseye
390+
# - path: images/build/debian-base/variants.yaml
391+
# match: "CONFIG: 'bullseye'"
390392
- path: images/build/debian-iptables/Makefile
391393
match: CONFIG\ \?=\ bullseye
392394
- path: images/build/debian-iptables/variants.yaml
393395
match: "CONFIG: 'bullseye'"
394396
# Must match distroless Debian version as well
395-
- path: images/build/go-runner/Makefile
396-
match: OS_CODENAME\ \?=\ bullseye
397-
- path: images/build/go-runner/variants.yaml
398-
match: "OS_CODENAME: 'bullseye'"
397+
# TODO: uncomment once bookworm is the default
398+
# - path: images/build/go-runner/Makefile
399+
# match: OS_CODENAME\ \?=\ bullseye
400+
# - path: images/build/go-runner/variants.yaml
401+
# match: "OS_CODENAME: 'bullseye'"
399402
- path: images/build/setcap/Makefile
400403
match: CONFIG\ \?=\ bullseye
401404
- path: images/build/setcap/variants.yaml
402405
match: "CONFIG: 'bullseye'"
403-
- path: images/releng/ci/variants.yaml
404-
match: "OS_CODENAME: 'bullseye'"
405-
- path: images/releng/k8s-ci-builder/Makefile
406-
match: OS_CODENAME\ \?=\ bullseye
407-
- path: images/releng/k8s-ci-builder/variants.yaml
408-
match: "OS_CODENAME: 'bullseye'"
406+
# TODO: uncomment once bookworm is the default
407+
# - path: images/releng/ci/variants.yaml
408+
# match: "OS_CODENAME: 'bullseye'"
409+
# - path: images/releng/k8s-ci-builder/Makefile
410+
# match: OS_CODENAME\ \?=\ bullseye
411+
# - path: images/releng/k8s-ci-builder/variants.yaml
412+
# match: "OS_CODENAME: 'bullseye'"
409413
- path: packages/deb/Dockerfile
410414
match: FROM golang:\d+.\d+(alpha|beta|rc)?\.?(\d+)-bullseye
411415

412416
- name: "Debian: codename (next candidate)"
413-
version: bullseye
417+
version: bookworm
414418
refPaths:
415419
- path: images/build/cross/variants.yaml
416-
match: "OS_CODENAME: 'bullseye'"
420+
match: "OS_CODENAME: 'bookworm'"
417421
- path: images/build/debian-base/variants.yaml
418-
match: "CONFIG: 'bullseye'"
422+
match: "CONFIG: 'bookworm'"
419423
- path: images/build/go-runner/variants.yaml
420-
match: "OS_CODENAME: 'bullseye'"
424+
match: "OS_CODENAME: 'bookworm'"
421425
- path: images/releng/ci/variants.yaml
422-
match: "OS_CODENAME: 'bullseye'"
426+
match: "OS_CODENAME: 'bookworm'"
423427
- path: images/releng/k8s-ci-builder/variants.yaml
424-
match: "OS_CODENAME: 'bullseye'"
428+
match: "OS_CODENAME: 'bookworm'"
425429

426430
- name: "registry.k8s.io/build-image/debian-base"
427-
version: bullseye-v1.4.3
431+
version: bookworm-v1.0.0
428432
refPaths:
429433
- path: images/build/debian-base/Makefile
430-
match: IMAGE_VERSION\ \?=\ bullseye-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
434+
match: IMAGE_VERSION\ \?=\ bookworm-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
431435
- path: images/build/debian-base/variants.yaml
432-
match: "IMAGE_VERSION: 'bullseye-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
436+
match: "IMAGE_VERSION: 'bookworm-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
433437

434438
- name: "registry.k8s.io/build-image/debian-base: dependents"
435439
version: bullseye-v1.4.3
@@ -475,10 +479,10 @@ dependencies:
475479

476480
# Base images (next candidate)
477481
- name: "registry.k8s.io/build-image/debian-base (next candidate)"
478-
version: bullseye-v1.4.3
482+
version: bookworm-v1.0.0
479483
refPaths:
480484
- path: images/build/debian-base/variants.yaml
481-
match: "IMAGE_VERSION: 'bullseye-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
485+
match: "IMAGE_VERSION: 'bookworm-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
482486

483487
- name: "registry.k8s.io/build-image/debian-base: dependents (next candidate)"
484488
version: bullseye-v1.4.3

images/build/cross/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ IMGNAME = kube-cross
2525
# a SemVer regex on the IMAGE_VERSION.
2626
#
2727
# Example:
28-
# - v1.100.0-go1.17-bullseye.0 satisfies SemVer regex, while:
29-
# - v1.100-go1.17-bullseye.0 does not
28+
# - v1.100.0-go1.17-bookworm.0 satisfies SemVer regex, while:
29+
# - v1.100-go1.17-bookworm.0 does not
3030
KUBERNETES_VERSION ?= v1.27.0
3131
GO_VERSION ?= 1.20.5
3232
GO_MAJOR_VERSION ?= 1.20
33-
OS_CODENAME ?= bullseye
33+
OS_CODENAME ?= bookworm
3434
REVISION ?= 0
3535
TYPE ?= default
3636

images/build/cross/variants.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
variants:
2-
v1.27-go1.20-bullseye:
3-
CONFIG: 'go1.20-bullseye'
2+
v1.27-go1.20-bookworm:
3+
CONFIG: 'go1.20-bookworm'
44
TYPE: 'default'
5-
IMAGE_VERSION: 'v1.27.0-go1.20.5-bullseye.0'
5+
IMAGE_VERSION: 'v1.27.0-go1.20.5-bookworm.0'
66
KUBERNETES_VERSION: 'v1.27.0'
77
GO_VERSION: '1.20.5'
88
GO_MAJOR_VERSION: '1.20'
9-
OS_CODENAME: 'bullseye'
9+
OS_CODENAME: 'bookworm'
1010
REVISION: '0'
1111
PROTOBUF_VERSION: '3.19.4'
12-
v1.26-go1.19-bullseye:
13-
CONFIG: 'go1.19-bullseye'
12+
v1.26-go1.19-bookworm:
13+
CONFIG: 'go1.19-bookworm'
1414
TYPE: 'default'
15-
IMAGE_VERSION: 'v1.26.0-go1.19.10-bullseye.0'
15+
IMAGE_VERSION: 'v1.26.0-go1.19.10-bookworm.0'
1616
KUBERNETES_VERSION: 'v1.26.0'
1717
GO_VERSION: '1.19.10'
1818
GO_MAJOR_VERSION: '1.19'
19-
OS_CODENAME: 'bullseye'
19+
OS_CODENAME: 'bookworm'
2020
REVISION: '0'
2121
PROTOBUF_VERSION: '3.19.4'
22-
v1.25-go1.19-bullseye:
23-
CONFIG: 'go1.19-bullseye'
22+
v1.25-go1.19-bookworm:
23+
CONFIG: 'go1.19-bookworm'
2424
TYPE: 'default'
25-
IMAGE_VERSION: 'v1.25.0-go1.19.10-bullseye.0'
25+
IMAGE_VERSION: 'v1.25.0-go1.19.10-bookworm.0'
2626
KUBERNETES_VERSION: 'v1.25.0'
2727
GO_VERSION: '1.19.10'
2828
GO_MAJOR_VERSION: '1.19'
29-
OS_CODENAME: 'bullseye'
29+
OS_CODENAME: 'bookworm'
3030
REVISION: '0'
3131
PROTOBUF_VERSION: '3.19.4'
32-
v1.24-go1.19-bullseye:
33-
CONFIG: 'go1.19-bullseye'
32+
v1.24-go1.19-bookworm:
33+
CONFIG: 'go1.19-bookworm'
3434
TYPE: 'default'
35-
IMAGE_VERSION: 'v1.24.0-go1.19.10-bullseye.0'
35+
IMAGE_VERSION: 'v1.24.0-go1.19.10-bookworm.0'
3636
KUBERNETES_VERSION: 'v1.24.0'
3737
GO_VERSION: '1.19.10'
3838
GO_MAJOR_VERSION: '1.19'
39-
OS_CODENAME: 'bullseye'
39+
OS_CODENAME: 'bookworm'
4040
REVISION: '0'
4141
PROTOBUF_VERSION: '3.19.4'

images/build/debian-base/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ IMAGE ?= $(REGISTRY)/debian-base
1919
BUILD_IMAGE ?= debian-build
2020

2121
TAG ?= $(shell git describe --tags --always --dirty)
22-
IMAGE_VERSION ?= bullseye-v1.4.3
23-
CONFIG ?= bullseye
22+
IMAGE_VERSION ?= bookworm-v1.0.0
23+
CONFIG ?= bookworm
2424

2525
TAR_FILE ?= rootfs.tar
2626
ARCH ?= amd64

images/build/debian-base/bullseye/Dockerfile.build renamed to images/build/debian-base/bookworm/Dockerfile.build

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,7 @@ RUN apt-get update \
4141
&& apt-get dist-upgrade -y
4242

4343
# Hold required packages to avoid breaking the installation of packages
44-
RUN apt-mark hold apt gnupg adduser passwd libsemanage1 libcap2
45-
46-
# Remove unnecessary packages.
47-
# This list was generated manually by listing the installed packages (`apt list --installed`),
48-
# then running `apt-cache rdepends --installed --no-recommends` to find the "root" packages.
49-
# The root packages were evaluated based on whether they were needed in the container image.
50-
# Several utilities (e.g. ping) were kept for usefulness, but may be removed in later versions.
51-
RUN echo "Yes, do as I say!" | apt-get purge \
52-
bash \
53-
e2fsprogs \
54-
libcap2-bin \
55-
libmount1 \
56-
libsmartcols1 \
57-
libblkid1 \
58-
libss2 \
59-
ncurses-base \
60-
ncurses-bin \
61-
tzdata
44+
RUN apt-mark hold apt gnupg adduser passwd libsemanage2 libcap2
6245

6346
# No-op stubs replace some unnecessary binaries that may be depended on in the install process (in
6447
# particular we don't run an init process).
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
variants:
2-
# Debian 11 - Kubernetes 1.23 and newer
3-
bullseye:
4-
CONFIG: 'bullseye'
5-
IMAGE_VERSION: 'bullseye-v1.4.3'
2+
bookworm:
3+
CONFIG: 'bookworm'
4+
IMAGE_VERSION: 'bookworm-v1.0.0'

images/build/go-runner/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ APP_VERSION = $(shell cat VERSION)
2020
GO_MAJOR_VERSION ?= 1.20
2121
REVISION ?= 0
2222
GO_VERSION ?= 1.20.5
23-
OS_CODENAME ?= bullseye
23+
OS_CODENAME ?= bookworm
2424

2525
# Build args
2626
DISTROLESS_REGISTRY ?= gcr.io/distroless

0 commit comments

Comments
 (0)