Skip to content

Commit 0415f0e

Browse files
committed
- Use golang builders from deckhouse images
- Cleanup virtualization_images.yml file. Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
1 parent fac82b3 commit 0415f0e

13 files changed

Lines changed: 12 additions & 34 deletions

File tree

base-images/virtualization_images.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ REGISTRY_PATH: "docker.io/"
33

44
# Virtualization images
55
BASE_DEBIAN_BOOKWORM_SLIM: "debian:bookworm-slim@sha256:e9ac68ffde903b241342267a51cd74c5417414af652cb2e380c6ddcf522589bc"
6-
BASE_CONTAINER_REGISTRY: "registry:2.8.3@sha256:ac0192b549007e22998eb74e8d8488dcfe70f1489520c3b144a6047ac5efbe90"
7-
BASE_GOLANG_22_BOOKWORM: "golang:1.22.12-bookworm@sha256:3d699e4d15d0f8f13c9195c0632a16702b8cbdece2955af1c23b37ae5d55a253"
8-
BASE_GOLANG_23_BOOKWORM: "golang:1.23.9-bookworm@sha256:26ca07ec0684ebe2154ad45a3a03710edb90b9cfc3769bead74ebcf6644dc759"
96

107
BASE_ALT_P10: "alt:p10@sha256:4fab03b8d23eb16147397b0bc41a5025ba59f4e834f7fb4b933ac5206431d740"
118
# Digest for image created at 2024-09-20.
129
BASE_ALT_P11: "alt:p11@sha256:39f03d3bca1a92dc36835c28c2ba2f22ec15257e950b3930e0a3f034466e8dfb"
13-
BASE_ALPINE: "alpine:3.17.10@sha256:3451da08fc6ef554a100da3e2df5ac6d598c82f2a774d5f6ed465c3d80cd163a"

images/cdi-artifact/werf.inc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
---
44
image: {{ $.ImageName }}
55
final: false
6-
fromImage: BASE_GOLANG_23_BOOKWORM
6+
fromImage: builder/golang-bookworm-1.23
77
mount:
88
- fromPath: ~/go-pkg-cache
99
to: /go/pkg

images/cdi-cloner/werf.inc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ shell:
5151
---
5252
image: {{ $.ImageName }}-gobuild
5353
final: false
54-
fromImage: BASE_GOLANG_23_BOOKWORM
54+
fromImage: builder/golang-bookworm-1.23
5555
git:
5656
- add: /images/{{ $.ImageName }}/cloner-startup
5757
to: /app

images/dvcr-artifact/werf.inc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
image: {{ $.ImageName }}-builder
33
final: false
4-
fromImage: BASE_GOLANG_23_BOOKWORM
4+
fromImage: builder/golang-bookworm-1.23
55
git:
66
- add: /images/{{ $.ImageName }}
77
to: /src

images/hooks/werf.inc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
image: {{ $.ImageName }}
33
final: false
4-
fromImage: BASE_GOLANG_23_BOOKWORM
4+
fromImage: builder/golang-bookworm-1.23
55
git:
66
- add: /images/{{ $.ImageName }}
77
to: /app/images/hooks

images/kube-api-rewriter/werf.inc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
image: {{ $.ImageName }}-builder
33
final: false
4-
fromImage: BASE_GOLANG_23_BOOKWORM
4+
fromImage: builder/golang-bookworm-1.23
55
git:
66
- add: /images/{{ $.ImageName }}
77
to: /src/kube-api-rewriter

images/pre-delete-hook/werf.inc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
image: pre-delete-hook-builder
33
final: false
4-
fromImage: BASE_GOLANG_23_BOOKWORM
4+
fromImage: builder/golang-bookworm-1.23
55
git:
66
- add: /images/{{ $.ImageName }}
77
to: /pre-delete-hook

images/virt-artifact/werf.inc.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
# Source https://github.com/kubevirt/kubevirt/blob/v1.3.1/hack/dockerized#L15
33
{{- $version := "1.3.1" }}
4-
{{- $goVersion := "1.22.12" }}
54

65
{{- $name := print $.ImageName "-dependencies" -}}
76
{{- define "$name" -}}
@@ -59,7 +58,6 @@ shell:
5958
echo -n "Apply ${p} ... "
6059
git apply --ignore-space-change --ignore-whitespace ${p} && echo OK || (echo FAIL ; exit 1)
6160
done
62-
- go mod edit -go={{ $goVersion }}
6361
- go mod download
6462
- echo Update modules to mitigate CVEs...
6563
- |
@@ -72,9 +70,9 @@ shell:
7270
go get github.com/cilium/ebpf/internal@v0.11.0
7371
7472
# CVE-2024-45337,CVE-2025-22869
75-
go get golang.org/x/crypto@v0.38.0
73+
go mod edit -replace golang.org/x/crypto=golang.org/x/crypto@v0.38.0
7674
# CVE-2025-22870, CVE-2025-22872
77-
go get golang.org/x/net@v0.40.0
75+
go mod edit -replace golang.org/x/net=golang.org/x/net@v0.40.0
7876
7977
- go mod vendor
8078

images/virt-launcher/werf.inc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ shell:
436436
---
437437
image: {{ $.ImageName }}-gobuilder
438438
final: false
439-
fromImage: BASE_GOLANG_23_BOOKWORM
439+
fromImage: builder/golang-bookworm-1.23
440440
git:
441441
- add: /images/{{ $.ImageName }}/node-labeller
442442
to: /node-labeller

images/virtualization-artifact/werf.inc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
image: {{ $.ImageName }}
33
final: false
4-
fromImage: BASE_GOLANG_23_BOOKWORM
4+
fromImage: builder/golang-bookworm-1.23
55
git:
66
- add: /api
77
to: /usr/local/go/api

0 commit comments

Comments
 (0)