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

pkg/manifests.list.preferOCI() learn about some new OCI fields #1816

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

nalind
Copy link
Member

@nalind nalind commented Jan 23, 2024

The OCI image index structure has grown a few new fields since the last time we looked, so we should be paying attention to whether any of them are being used when deciding if we need to use the OCI format instead of the Docker format.

The Docker format also grew a "URLs" field, so we can't use its mere presence as a heuristic any more.

@rhatdan
Copy link
Member

rhatdan commented Jan 23, 2024

/approve
LGTM

The OCI image index structure has grown a few new fields since the last
time we looked, so we should be paying attention to whether any of them
are being used when deciding if we need to use the OCI format instead of
the Docker format.

The Docker format also grew a "URLs" field, so we can't use its mere
presence as a heuristic any more.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
@nalind
Copy link
Member Author

nalind commented Jan 23, 2024

Had to remove the bit that checked if the manifest had annotations in its top level. The test that started with an OCI format, set "features" (a Docker-specific field) in an entry, and then saved and reloaded the manifest was getting an OCI format manifest back, which naturally did not include "features" information, so the test was failing.

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

Copy link
Contributor

openshift-ci bot commented Jan 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nalind, rhatdan, 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-bot openshift-merge-bot bot merged commit 167512e into containers:main Jan 24, 2024
7 checks passed
@nalind nalind deleted the prefer-oci branch January 24, 2024 14:39
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.

None yet

3 participants