-
Notifications
You must be signed in to change notification settings - Fork 786
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 to latest libimage #3194
update to latest libimage #3194
Conversation
d6164a4
to
e003db1
Compare
Update Buildah to the latest libimage. Migrating Podman over to libimage entailed a number of fixes and changes to libimage which we need to account for in Buildah. Most notably: * `(*Runtime).LookupImage()` now returns `storage.ErrImageUnknown` instead of `nil` in case no matching image is found. * `(*Runtime).LookupImage()` now does quite a bit more work finding a local image and will also look at the repotags (or digests) of all local images if needed. * The signature of `(*Runtime).RemoveImages()` was changed and now returns a slice of reports and errors. The reports aggregate the data of a removed image which allows the function to be used by `podman image prune` which is also interested in the size of the removed data. The slice of errors is also needed in Podman which needs to have a closer look at _all_ rmi errors in order to determine the appropriate exit code (Docker compat). * `libimage/types` has been removed. Pull policies have been merged into already existing logic in `pkg/config`. Please refer to containers/podman/pull/10147 for a more detailed changelog. [NO NEW TESTS NEEDED] Signed-off-by: Valentin Rothberg <[email protected]>
e003db1
to
a23a49b
Compare
@rhatdan, ready 🏁 |
@giuseppe PTAL |
lgtm |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, vrothberg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Update Buildah to the latest libimage. Migrating Podman over to
libimage entailed a number of fixes and changes to libimage which
we need to account for in Buildah.
Most notably:
(*Runtime).LookupImage()
now returnsstorage.ErrImageUnknown
instead of
nil
in case no matching image is found.(*Runtime).LookupImage()
now does quite a bit more work findinga local image and will also look at the repotags (or digests) of
all local images if needed.
The signature of
(*Runtime).RemoveImages()
was changed and nowreturns a slice of reports and errors. The reports aggregate the
data of a removed image which allows the function to be used by
podman image prune
which is also interested in the size of theremoved data. The slice of errors is also needed in Podman which
needs to have a closer look at all rmi errors in order to determine
the appropriate exit code (Docker compat).
libimage/types
has been removed. Pull policies have been mergedinto already existing logic in
pkg/config
.Please refer to containers/podman/pull/10147 for a more detailed
changelog.
Signed-off-by: Valentin Rothberg [email protected]
What type of PR is this?
What this PR does / why we need it:
How to verify it
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?