executor: Don't repull image if pinned by digest#28265
executor: Don't repull image if pinned by digest#28265tonistiigi merged 1 commit intomoby:masterfrom
Conversation
|
@aaronlehmann I'm not sure this is the right component to handle this. The format of the image ref should be opaque to the the controller. Shouldn't the engine make this determination? |
There was a problem hiding this comment.
See my comment, but this should at least be checked in the adapter.
|
@stevvooe: Do you mean that the pull implementation should short-circuit if a pull by digest was requested and the image with that digest already exists? I'm not completely sure I agree with that, as it means we would skip the flow that normally happens when you run |
|
I see why this optimization could be problematic in the push/pull code. Let's just move this into the adapter for now. |
If the image reference in the spec uses a digest, and an image with that digest already exists locally, avoid an unnecessary repull. Signed-off-by: Aaron Lehmann <[email protected]>
695f4a3 to
f69e5c1
Compare
|
@stevvooe: Moved to the adapter. This ended up being cleaner than the original approach. PTAL |
|
LGTM |
1 similar comment
|
LGTM |
|
LGTM |
If the image reference in the spec uses a digest, and an image with that
digest already exists locally, avoid an unnecessary repull.
cc @nishanttotla @stevvooe @aluzzardi @tonistiigi