chore(images): simplifies ListImages service, server, and client to only list Docker images and not directly access containerd

This commit is contained in:
Pasha Sviderski
2025-10-03 18:25:39 +10:00
parent f8bf6bccd3
commit cce81ecaad
10 changed files with 234 additions and 327 deletions
+2 -2
View File
@@ -1240,7 +1240,7 @@ myapp.example.com {
// Checking only DockerImages because the machines in ucind cluster don't use the containerd image store.
if !machinesWithContainers.Contains(mi.Metadata.Machine) {
// This is the machine without service containers, it should not have the unique image.
for _, img := range mi.DockerImages {
for _, img := range mi.Images {
assert.NotContains(t, img.RepoTags, uniqueImage)
}
continue
@@ -1248,7 +1248,7 @@ myapp.example.com {
// Check if the unique image is present on the machine where a service container is running.
hasImage := false
for _, img := range mi.DockerImages {
for _, img := range mi.Images {
if slices.Contains(img.RepoTags, uniqueImage) {
hasImage = true
break