bug fix: make sure cri image is pinned when it is pulled outside cri#9732
bug fix: make sure cri image is pinned when it is pulled outside cri#9732dims merged 1 commit intocontainerd:mainfrom
Conversation
mikebrow
left a comment
There was a problem hiding this comment.
see comments.. Thanks for doing this PR!
c024a0b to
977e17e
Compare
|
/retest |
|
/retest |
|
/test pull-containerd-node-e2e |
|
Thanks @mikebrow @ruiwen-zhao @adisky. The PR is updated, please take another look. thanks! |
666b8ef to
5cef2f5
Compare
|
/retest |
| if oldImg.Target.Digest == img.Target.Digest && oldImg.Labels[crilabels.ImageLabelKey] == labels[crilabels.ImageLabelKey] { | ||
| // Retrieve oldImg from image store here because Create routine returns an | ||
| // empty image on ErrAlreadyExists | ||
| oldImg, err := c.images.Get(ctx, name) |
There was a problem hiding this comment.
Could just move this into the else case to avoid unnecessary Get
bug fix: make sure cri image is pinned when it is pulled outside cri
Signed-off-by: Henry Wang <henwang@amazon.com>
|
Hi folks, the pause image is still not pinned when upgrading from 1.6.28 to 1.6.33. During the upgrade, the pause image remained unchanged. Although I use |
Fixes: #9726
Update the
CRIImageService.UpdateImageroutine to pass image ref togetLabelsso that a CRI image could be correctly pinned if it's pulled outside of CRI, e.g. viactr image pull.