Skip to content

Prevent push by tag for sub-manifests#3476

Merged
estesp merged 1 commit intocontainerd:masterfrom
dmcgowan:fix-push-exist-check
Aug 2, 2019
Merged

Prevent push by tag for sub-manifests#3476
estesp merged 1 commit intocontainerd:masterfrom
dmcgowan:fix-push-exist-check

Conversation

@dmcgowan
Copy link
Copy Markdown
Member

@dmcgowan dmcgowan commented Jul 31, 2019

When pushing a manifest list, all manifests should be pushed by digest and only the final manifest pushed by tag. The Pusher was preventing this by mistakenly disallowing objects to contain a digest. When objects have a digest, only push tags associated with that digest.

Fixes #2639

When pushing a manifest list, all manifests should be pushed by digest
and only the final manifest pushed by tag. The Pusher was preventing
this by mistakenly disallowing objects to contain a digest. When objects
have a digest, only push tags associated with that digest.

Signed-off-by: Derek McGowan <[email protected]>
@dmcgowan dmcgowan added this to the 1.3 milestone Jul 31, 2019
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 31, 2019

Build succeeded.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3476 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3476      +/-   ##
==========================================
- Coverage   44.24%   44.24%   -0.01%     
==========================================
  Files         124      124              
  Lines       13732    13733       +1     
==========================================
  Hits         6076     6076              
- Misses       6725     6726       +1     
  Partials      931      931
Flag Coverage Δ
#linux 48.04% <0%> (ø) ⬆️
#windows 39.85% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
remotes/docker/resolver.go 53.97% <0%> (+0.43%) ⬆️
remotes/docker/pusher.go 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 053853f...c965a6c. Read the comment docs.

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp estesp merged commit 69d65c9 into containerd:master Aug 2, 2019
@dmcgowan dmcgowan deleted the fix-push-exist-check branch September 10, 2019 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

containerd may temporarily push wrong manifest

4 participants