fix: update the CRI sandbox image reference

Fix the test, and update the reference.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
Andrey Smirnov 2024-10-28 14:52:19 +04:00
parent cec290b354
commit c755b6d7e4
No known key found for this signature in database
GPG Key ID: FE042E3D4085A811
2 changed files with 8 additions and 2 deletions

View File

@ -56,11 +56,17 @@ func (suite *ContainersSuite) TestSandboxImage() {
for _, message := range resp.GetMessages() {
suite.Assert().NotEmpty(message.GetContainers())
matched := false
for _, ctr := range message.GetContainers() {
if ctr.PodId == "" {
if ctr.PodId == ctr.Id {
suite.Assert().Equal(images.DefaultSandboxImage, ctr.Image)
matched = true
}
}
suite.Assert().True(matched, "no pods found, node %s", node)
}
}

View File

@ -31,7 +31,7 @@ type Versions struct {
// DefaultSandboxImage is defined as a constant in cri package of containerd, and it's not exported.
//
// The integration test verifies that our constant is accurate.
const DefaultSandboxImage = "registry.k8s.io/pause:3.9"
const DefaultSandboxImage = "registry.k8s.io/pause:3.10"
// List returns default image versions.
func List(config config.Config) Versions {