-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Description
root@lantaol0:~# crictl pull k8s.gcr.io/busybox:1.24
Image is up to date for sha256:ddabeeccc3fa881b831a6dc22831db07d56876dc6f660fd017030bcef0f7de5c
root@lantaol0:~# crictl pull k8s.gcr.io/busybox:1.24
Image is up to date for sha256:9e3bfbcf25238b741dff9d21f446bc06ba122507e8c7950cbb45e356c4970efa
root@lantaol0:~# crictl pull k8s.gcr.io/busybox:1.24
Image is up to date for sha256:9e3bfbcf25238b741dff9d21f446bc06ba122507e8c7950cbb45e356c4970efa
root@lantaol0:~# crictl pull k8s.gcr.io/busybox:1.24
Image is up to date for sha256:9e3bfbcf25238b741dff9d21f446bc06ba122507e8c7950cbb45e356c4970efa
root@lantaol0:~# crictl pull k8s.gcr.io/busybox:1.24
Image is up to date for sha256:9e3bfbcf25238b741dff9d21f446bc06ba122507e8c7950cbb45e356c4970efa
There are 2 problems:
- The image id (image config digest) for the same image shouldn't change if the image is not changed. @dmcgowan
- After Cache image reference cri#865,
criplugin only generates repotag and repodigest for an image. Therepotag -> imagemapping can change (e.g. this issue, or the image tag used to tag another image), but we thought repodigest can behave as the unique identifier. So that even therepotag -> imagemapping changes, the image will still have a reference. However, I forgot that for schema 1 image, there is no repo digest. Socriplugin should still generate an image id as the unique image reference, which we were doing before 1.2..