containerd/pkg/cri/store/image
Derek McGowan 0886ceaea2
Fix reference ordering in CRI image store
Currently image references end up being stored in a
random order due to the way maps are iterated through
in Go. This leads to inconsistent identifiers being
resolved when a single reference is needed to identify
an image and the ordering of the references is used for
the selection.

Sort references in a consistent and ranked manner,
from higher information formats to lower.

Note: A `name + tag` reference is considered higher
information than a `name + digest` reference since a
registry may be used to resolve the digest from a
`name + tag` reference.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2021-03-22 22:29:57 -07:00
..
fake_image.go Move cri server packages under pkg/cri 2020-10-07 13:09:37 -07:00
image_test.go Fix reference ordering in CRI image store 2021-03-22 22:29:57 -07:00
image.go Fix reference ordering in CRI image store 2021-03-22 22:29:57 -07:00
sort_test.go Fix reference ordering in CRI image store 2021-03-22 22:29:57 -07:00
sort.go Fix reference ordering in CRI image store 2021-03-22 22:29:57 -07:00