Skip to content

Commit 9a98f73

Browse files
committed
feat: update containerd to v2.0.0
Include the patch containerd/containerd#10917 See siderolabs/talos#9594 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
1 parent 20e1e08 commit 9a98f73

File tree

3 files changed

+45
-4
lines changed

3 files changed

+45
-4
lines changed

Pkgfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ vars:
1111
cni_sha512: a967dcaedb595bad25e0643aba50b35fb850b5893518829951ba5622d195ab309a3a489c9eb9ff8ad1df9ad0244c05434143f564ea27c4d04f27e1c5be240554
1212

1313
# renovate: datasource=github-tags depName=containerd/containerd
14-
containerd_version: v2.0.0-rc.6
15-
containerd_ref: b70cce2085802e9e166ed8d92b42058c550f9ca3
16-
containerd_sha256: 8ea2934e5f8abcd70e35bb32ae6268ee64e2ea189d9c98584126a36f35046b48
17-
containerd_sha512: f0b09e49e25355170cbf673c5acaaa43d969330c1ab707ade7bfa5576e43b1adb01c5138d698d250502c9886d5a327bd75dab57137161b35f0da99bf572165c6
14+
containerd_version: v2.0.0
15+
containerd_ref: 207ad711eabd375a01713109a8a197d197ff6542
16+
containerd_sha256: 346d644e1b96e1f4a39bfe9d1eb0eb01ca676f806c12d95e5dbe35325bbc1780
17+
containerd_sha512: b1a89c4c53db2c69757bc40d90d585e2662ab4fffb28acb904f9710b281a9f22273ecdbab49250b229bf95b29cf1a33a352afb81967db7580ae209a83c5fb2ea
1818

1919
# renovate: datasource=git-tags extractVersion=^v(?<version>.*)$ depName=git://git.kernel.org/pub/scm/utils/cryptsetup/cryptsetup.git
2020
cryptsetup_version: 2.7.5
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
See https://github.com/containerd/containerd/pull/10917
2+
3+
From 11b1353c12b9f3a1542ffe44a00a988e330f8c56 Mon Sep 17 00:00:00 2001
4+
From: Andrey Smirnov <andrey.smirnov@siderolabs.com>
5+
Date: Tue, 29 Oct 2024 20:42:02 +0400
6+
Subject: [PATCH] fix: set the credentials even if not provided
7+
8+
Fixes #10916
9+
10+
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
11+
---
12+
internal/cri/server/images/image_pull.go | 14 ++++++++++++++
13+
1 file changed, 14 insertions(+)
14+
15+
diff --git a/internal/cri/server/images/image_pull.go b/internal/cri/server/images/image_pull.go
16+
index e59b88b4f248..de8445932a11 100644
17+
--- a/internal/cri/server/images/image_pull.go
18+
+++ b/internal/cri/server/images/image_pull.go
19+
@@ -133,6 +133,20 @@ func (c *CRIImageService) PullImage(ctx context.Context, name string, credential
20+
defer inProgressImagePulls.Dec()
21+
startTime := time.Now()
22+
23+
+ if credentials == nil {
24+
+ credentials = func(host string) (string, string, error) {
25+
+ var hostauth *runtime.AuthConfig
26+
+
27+
+ config := c.config.Registry.Configs[host]
28+
+ if config.Auth != nil {
29+
+ hostauth = toRuntimeAuthConfig(*config.Auth)
30+
+
31+
+ }
32+
+
33+
+ return ParseAuth(hostauth, host)
34+
+ }
35+
+ }
36+
+
37+
namedRef, err := distribution.ParseDockerRef(name)
38+
if err != nil {
39+
return "", fmt.Errorf("failed to parse image reference %q: %w", name, err)

containerd/pkg.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ steps:
1919
prepare:
2020
- |
2121
tar -xzf containerd.tar.gz --strip-components=1
22+
23+
patch -p1 < /pkg/patches/sandbox-image-pull.patch
2224
build:
2325
- |
2426
make VERSION={{ .containerd_version }} REVISION={{ .containerd_ref }}

0 commit comments

Comments
 (0)