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

Add imagelayout validator and ImageLayoutFile const #519

Merged
merged 3 commits into from
Feb 10, 2017

Conversation

coolljt0725
Copy link
Member

We had added image layout schema, but didn't add image layout validator.
Add imagelayout validator and ImageLayoutFile const, so image tool and other
tools can use image -spec to validate the layout of the oci image.

@philips
Copy link
Contributor

philips commented Jan 25, 2017

LGTM

Approved with PullApprove

schema/schema.go Outdated
@@ -26,6 +26,7 @@ const (
MediaTypeManifest Validator = v1.MediaTypeImageManifest
MediaTypeManifestList Validator = v1.MediaTypeImageManifestList
MediaTypeImageConfig Validator = v1.MediaTypeImageConfig
TypeImageLayout Validator = v1.ImageLayoutFile
Copy link
Contributor

Choose a reason for hiding this comment

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

O, this is weird. All of these should start with Validator.

Copy link
Contributor

Choose a reason for hiding this comment

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

All of these should start with Validator.

Or we could drop them and use a map: #403.

Copy link
Contributor

Choose a reason for hiding this comment

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

#403 is never going to land. This effectively uses a map internally anyways. See my example.

@coolljt0725
Copy link
Member Author

@stevvooe

O, this is weird. All of these should start with Validator.

Added a commit to address this.

@coolljt0725 coolljt0725 force-pushed the validate_layout branch 2 times, most recently from 0ab3d08 to 471750d Compare February 7, 2017 06:19
@coolljt0725
Copy link
Member Author

ping @philips @stevvooe

@zhouhao3
Copy link

zhouhao3 commented Feb 8, 2017

You have to modify other test files.

@stevvooe
Copy link
Contributor

stevvooe commented Feb 9, 2017

LGTM

Please fix the build. ;)

Approved with PullApprove

Signed-off-by: Lei Jitang <leijitang@huawei.com>
Add image layout validator so the image tool or other
tools can use the image-spec to validate the oci image.

Signed-off-by: Lei Jitang <leijitang@huawei.com>
Signed-off-by: Lei Jitang <leijitang@huawei.com>
@coolljt0725
Copy link
Member Author

@stevvooe @philips fixed the build :)

@vbatts
Copy link
Member

vbatts commented Feb 9, 2017

LGTM

Approved with PullApprove

1 similar comment
@stevvooe
Copy link
Contributor

stevvooe commented Feb 10, 2017

LGTM

Approved with PullApprove

@stevvooe stevvooe merged commit c16fa01 into opencontainers:master Feb 10, 2017
@coolljt0725 coolljt0725 deleted the validate_layout branch February 11, 2017 02:47
@coolljt0725 coolljt0725 mentioned this pull request Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants