mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
rkt: Include size in ListImages
This commit is contained in:
parent
5ad727d932
commit
55f09009c7
@ -88,7 +88,7 @@ func (r *Runtime) ListImages() ([]kubecontainer.Image, error) {
|
||||
images[i] = kubecontainer.Image{
|
||||
ID: image.Id,
|
||||
RepoTags: []string{buildImageName(image)},
|
||||
//TODO: fill in the size of the image
|
||||
Size: image.Size,
|
||||
}
|
||||
}
|
||||
return images, nil
|
||||
|
@ -294,21 +294,25 @@ func TestListImages(t *testing.T) {
|
||||
Id: "sha512-a2fb8f390702",
|
||||
Name: "quay.io/coreos/alpine-sh",
|
||||
Version: "latest",
|
||||
Size: 400,
|
||||
},
|
||||
{
|
||||
Id: "sha512-c6b597f42816",
|
||||
Name: "coreos.com/rkt/stage1-coreos",
|
||||
Version: "0.10.0",
|
||||
Size: 400,
|
||||
},
|
||||
},
|
||||
[]kubecontainer.Image{
|
||||
{
|
||||
ID: "sha512-a2fb8f390702",
|
||||
RepoTags: []string{"quay.io/coreos/alpine-sh:latest"},
|
||||
Size: 400,
|
||||
},
|
||||
{
|
||||
ID: "sha512-c6b597f42816",
|
||||
RepoTags: []string{"coreos.com/rkt/stage1-coreos:0.10.0"},
|
||||
Size: 400,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user