containerd/pkg/cri/store
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
..
container Fix repeated sending signal 2021-02-17 21:33:49 +08:00
image Fix reference ordering in CRI image store 2021-03-22 22:29:57 -07:00
label Fix exported comments enforcer in CI 2021-03-12 08:47:05 -08:00
sandbox Copy pkg/symlink and pkg/truncindex from moby/moby 2020-10-15 08:36:35 -04:00
snapshot Move cri server packages under pkg/cri 2020-10-07 13:09:37 -07:00
truncindex Copy pkg/symlink and pkg/truncindex from moby/moby 2020-10-15 08:36:35 -04:00
errors_test.go Move cri server packages under pkg/cri 2020-10-07 13:09:37 -07:00
errors.go Move cri server packages under pkg/cri 2020-10-07 13:09:37 -07:00
util.go Move cri server packages under pkg/cri 2020-10-07 13:09:37 -07:00