Skip to content
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

Merged

Conversation

vrothberg
Copy link
Member

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.

Signed-off-by: Valentin Rothberg [email protected]

What type of PR is this?

/kind api-change
/kind bug
/kind cleanup
/kind deprecation
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake
/kind other

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?


@vrothberg
Copy link
Member Author

@rhatdan @nalind FYI

The Podman PR is closer to turn green, so I used the time waiting for CI to reflect the changes to libimage in Buildah as well.

@vrothberg vrothberg force-pushed the libimage-updates branch 10 times, most recently from d6164a4 to e003db1 Compare May 3, 2021 13:21
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]>
@vrothberg vrothberg force-pushed the libimage-updates branch from e003db1 to a23a49b Compare May 4, 2021 06:45
@vrothberg vrothberg changed the title WIP - update to latest libimage update to latest libimage May 4, 2021
@vrothberg
Copy link
Member Author

@rhatdan, ready 🏁

@vrothberg
Copy link
Member Author

@giuseppe PTAL

@baude
Copy link
Member

baude commented May 4, 2021

lgtm

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 903dc56 into containers:master May 4, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants