Skip to content

Commit 5c7b02d

Browse files
committed
fix: update the CRI sandbox image reference
Fix the test, and update the reference. Signed-off-by: Andrey Smirnov <[email protected]> (cherry picked from commit c755b6d)
1 parent f8155c4 commit 5c7b02d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

internal/integration/api/containers.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,17 @@ func (suite *ContainersSuite) TestSandboxImage() {
5656
for _, message := range resp.GetMessages() {
5757
suite.Assert().NotEmpty(message.GetContainers())
5858

59+
matched := false
60+
5961
for _, ctr := range message.GetContainers() {
60-
if ctr.PodId == "" {
62+
if ctr.PodId == ctr.Id {
6163
suite.Assert().Equal(images.DefaultSandboxImage, ctr.Image)
64+
65+
matched = true
6266
}
6367
}
68+
69+
suite.Assert().True(matched, "no pods found, node %s", node)
6470
}
6571
}
6672

pkg/images/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type Versions struct {
3131
// DefaultSandboxImage is defined as a constant in cri package of containerd, and it's not exported.
3232
//
3333
// The integration test verifies that our constant is accurate.
34-
const DefaultSandboxImage = "registry.k8s.io/pause:3.9"
34+
const DefaultSandboxImage = "registry.k8s.io/pause:3.10"
3535

3636
// List returns default image versions.
3737
func List(config config.Config) Versions {

0 commit comments

Comments
 (0)