mirror of
https://github.com/siderolabs/talos.git
synced 2026-05-05 20:36:18 +02:00
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:
parent
cec290b354
commit
c755b6d7e4
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user