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

IR-114: Adding support for OCI schema #255

Merged
merged 3 commits into from Jan 5, 2021
Merged

IR-114: Adding support for OCI schema #255

merged 3 commits into from Jan 5, 2021

Conversation

ricardomaraschini
Copy link
Contributor

This patch adds support for OCI schema into the internal registry. OCI
schemas are very similar to Docker schema v2 thus this patch only
creates a new manifest handler (very similar to docker schema v2
handler) and register it as a known schema handler.

This patch adds support for OCI schema into the internal registry. OCI
schemas are very similar to Docker schema v2 thus this patch only
creates a new manifest handler (very similar to docker schema v2
handler) and register it as a known schema handler.
@ricardomaraschini ricardomaraschini changed the title IR-114: Adding support for OCI schema WIP - IR-114: Adding support for OCI schema Nov 4, 2020
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 4, 2020
@ricardomaraschini ricardomaraschini changed the title WIP - IR-114: Adding support for OCI schema IR-114: Adding support for OCI schema Nov 4, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 4, 2020
@ricardomaraschini
Copy link
Contributor Author

/hold

keep this on hold until we get all needed approvals.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 4, 2020
@ricardomaraschini
Copy link
Contributor Author

/assign @dmage

Integration test pushes an OCI image and verifies it got correctly
processed.
Copy link
Member

@dmage dmage left a comment

Choose a reason for hiding this comment

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

looks good, but there are few things to tests

t.Errorf("error getting image stream: %s", err)
}
if len(is.Status.Tags) != 1 {
t.Fatal("no tag found in image stream")
Copy link
Member

Choose a reason for hiding this comment

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

the error message will be misleading if there are more than 1 tag

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. PTAL.

dgst,
is.Status.Tags[0].Items[0].Image,
)
}
Copy link
Member

Choose a reason for hiding this comment

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

It's better to check that the image object has proper mediatype and information about the config blob.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. PTAL.

Changed a test to also validate if the imported oci manifest points to
the correct config by its sha.
@ricardomaraschini
Copy link
Contributor Author

/retest

1 similar comment
@ricardomaraschini
Copy link
Contributor Author

/retest

@dmage
Copy link
Member

dmage commented Nov 16, 2020

/approve
tests are red though

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 16, 2020
@ricardomaraschini
Copy link
Contributor Author

/retest

4 similar comments
@ricardomaraschini
Copy link
Contributor Author

/retest

@ricardomaraschini
Copy link
Contributor Author

/retest

@dmage
Copy link
Member

dmage commented Dec 4, 2020

/retest

@dmage
Copy link
Member

dmage commented Dec 4, 2020

/retest

@dmage
Copy link
Member

dmage commented Dec 4, 2020

/assign @wzheng1 @bmcelvee @sferich888

The registry tests are flaky, but eventually they'll be green. The PRs is ready for review.

@ricardomaraschini
Copy link
Contributor Author

/retest

@openshift-merge-robot
Copy link
Contributor

openshift-merge-robot commented Dec 7, 2020

@ricardomaraschini: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/integration 7db53ad link /test integration

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@wzheng1
Copy link

wzheng1 commented Dec 9, 2020

/lgtm
QE has finished testing with this PR and no issue found.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 9, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dmage, ricardomaraschini, wzheng1

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

@ricardomaraschini
Copy link
Contributor Author

/retest

@bmcelvee
Copy link

/label docs-approved

@openshift-ci-robot openshift-ci-robot added the docs-approved Signifies that Docs has signed off on this PR label Dec 18, 2020
@ricardomaraschini
Copy link
Contributor Author

@sferich888 we miss your ack on this one

@wzheng1
Copy link

wzheng1 commented Jan 4, 2021

/label qe-approved

@openshift-ci-robot openshift-ci-robot added the qe-approved Signifies that QE has signed off on this PR label Jan 4, 2021
@sferich888
Copy link

/label px-approved
/unassign @sferich888

@openshift-ci-robot openshift-ci-robot added the px-approved Signifies that Product Support has signed off on this PR label Jan 4, 2021
@ricardomaraschini
Copy link
Contributor Author

/unhold

Approved by all stakeholders.

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 4, 2021
@bparees bparees added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Jan 5, 2021
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 4e35575 into openshift:master Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. docs-approved Signifies that Docs has signed off on this PR lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants