Skip to content

Add ImageListSelection to copier options#2165

Merged
openshift-merge-bot[bot] merged 1 commit intocontainers:mainfrom
baude:imagelistselection
Sep 20, 2024
Merged

Add ImageListSelection to copier options#2165
openshift-merge-bot[bot] merged 1 commit intocontainers:mainfrom
baude:imagelistselection

Conversation

@baude
Copy link
Member

@baude baude commented Sep 19, 2024

For artifact support, the copier needs to get all tags; as such, we need to pass in the correct value for ImageListSelection.

For artifact support, the copier needs to get all tags; as such, we need
to pass in the correct value for ImageListSelection.

Signed-off-by: Brent Baude <bbaude@redhat.com>
Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

LGTM.

// CopySpecificImages, to control whether, when the source reference is a list,
// copy.Image() copies only an image which matches the current runtime
// environment, or all images which match the supplied reference, or only
// specific images from the source reference.
Copy link
Contributor

Choose a reason for hiding this comment

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

(Without exposing also Instances, CopySpecificImages is not usable. But Instances is not relevant to the current use case anyway, and there’s not really a benefit to explicitly rejecting the value — anyone implementing a user of CopySpecificImages would see that it’s impossible.)

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM

@vrothberg
Copy link
Member

/lgtm

@vrothberg
Copy link
Member

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude, vrothberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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-bot openshift-merge-bot bot merged commit 6fc9967 into containers:main Sep 20, 2024
// CopySpecificImages, to control whether, when the source reference is a list,
// copy.Image() copies only an image which matches the current runtime
// environment, or all images which match the supplied reference, or only
// specific images from the source reference.
Copy link
Contributor

Choose a reason for hiding this comment

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

On second thought… a

// Warning: Setting this on libimage operations generally isn’t expected to work; libimage has strong assumptions on whether the copies create in single-arch or multi-arch images.

would be nice to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants