-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update containers/storage and containers/image #187
Conversation
commit.go
Outdated
@@ -116,10 +130,10 @@ func (b *Builder) shallowCopy(dest types.ImageReference, src types.ImageReferenc | |||
Size: int64(len(config)), | |||
} | |||
_, err = destImage.PutBlob(bytes.NewReader(config), configBlobInfo) | |||
if err != nil && len(config) > 0 { | |||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge into a single line.
if _, err := destImage.PutBlob(bytes.NewReader(config), configBlobInfo); err != nil {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing.
commit.go
Outdated
} | ||
defer layerDiff.Close() | ||
// Write a copy of the layer as a blob, for the new image to reference. | ||
_, err = destImage.PutBlob(layerDiff, types.BlobInfo{Digest: "", Size: -1}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Single line if _, err := ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing.
commit.go
Outdated
case archive.Bzip2: | ||
// Until the image specs define a media type for bzip2-compressed layers, even if we know | ||
// how to decompress them, we can't try to compress layers with bzip2. | ||
return errors.New("media type for bzip2-compressed layers is not defined") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we return ENOSUP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd still have to wrap it to indicate what it is that isn't supported... sure, why not.
Updated. |
I hit the easy to understand stuff, have to rely on the Test suites for the rest. LGTM |
8e6861c
to
7446c9a
Compare
☔ The latest upstream changes (presumably b9b2a8a) made this pull request unmergeable. Please resolve the merge conflicts. |
3414a75
to
199d77b
Compare
b3d18b1
to
b872b7d
Compare
☔ The latest upstream changes (presumably be5bcd5) made this pull request unmergeable. Please resolve the merge conflicts. |
@nalind needs rebase. |
3aa0c22
to
84a7705
Compare
☔ The latest upstream changes (presumably 15792b2) made this pull request unmergeable. Please resolve the merge conflicts. |
3b19abf
to
c3b4855
Compare
36ff9a0
to
8a80d89
Compare
Update containers/image and containers/storage to current master (17449738f2bb4c6375c20dcdcfe2a6cccf03f312 and 0d32dfce498e06c132c60dac945081bf44c22464, respectively). Also updates github.com/docker/docker, golang.org/x/sys, and golang.org/x/text. Signed-off-by: Nalin Dahyabhai <[email protected]>
Update shallowCopy() to work with the newer version of image. Remove things from Push() that we don't need to do any more. Preserve digests in image names, make sure we update creation times, and add a test to ensure that we can pull, commit, and push using such names as sources. Signed-off-by: Nalin Dahyabhai <[email protected]>
8a80d89
to
b5f18b0
Compare
@rhatdan, @TomSweeneyRedHat, is there anything you want changed here? |
LGTM and I know it fixes up a number of older issues. I'm also trusting in the tests to shake stuff out. I'd say push the big red button. |
LGTM |
📌 Commit b5f18b0 has been approved by |
⚡ Test exempted: pull fully rebased and already tested. |
Update shallowCopy() to work with the newer version of image. Remove things from Push() that we don't need to do any more. Preserve digests in image names, make sure we update creation times, and add a test to ensure that we can pull, commit, and push using such names as sources. Signed-off-by: Nalin Dahyabhai <[email protected]> Closes: #187 Approved by: rhatdan
Update shallowCopy() to work with the newer version of image. Remove things from Push() that we don't need to do any more. Preserve digests in image names, make sure we update creation times, and add a test to ensure that we can pull, commit, and push using such names as sources. Signed-off-by: Nalin Dahyabhai <[email protected]> Closes: #187 Approved by: rhatdan Signed-off-by: Nalin Dahyabhai <[email protected]>
Since we merged #187, push-by-ID should work for images with schema 1 manifests. Signed-off-by: Nalin Dahyabhai <[email protected]>
Also add buildah as a requirement so that kpod build tests will run Signed-off-by: Daniel J Walsh <[email protected]> Closes: #187 Approved by: mheon
This bumps the versions of containers/storage and containers/image that we use, and updates the shortcuts that we take when committing to local storage to compensate for assumptions that it made which are no longer true (now it makes different ones).