-
Notifications
You must be signed in to change notification settings - Fork 652
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
cmd/oci-image-tool: validation errors and warnings #286
Comments
On Fri, Sep 09, 2016 at 01:33:06AM -0700, Antonio Murdaca wrote:
I think the softening should go behind a flag like --unpackable [1](which makes more sense than my alternative a) The media type is recognized and an expected target of the source The spec does not currently place restrictions on allowed types for
I don't think that scales as the number of supported media types grows |
On Fri, Sep 09, 2016 at 01:50:04AM -0700, W. Trevor King wrote:
Scratch that, we would still have instances of (b) in the refs. So |
@wking I really struggle at following you comments full of references to other issues/place of your paragraph. I personally find it really confusing. Could you please concisely re-explain what are you suggesting to have here? |
On Fri, Sep 09, 2016 at 01:59:05AM -0700, Antonio Murdaca wrote:
Some of the things are not actionable suggestions, but just raising But that's about spec development. I have opinions about the Say the spec has evolved so manifest.config requires …config.v1+json refs: should validate (without --unpackable) as: ok 1 - v1.0 recognized media type: …manifest.v1+json We do not attempt to fetch sha256-a…'s ‘layers1’ (because we know not ok 7 - sha256-a… layers[2] cannot unpack unknown media type: image/png Sorting the results into the cases from 1: a) Recognized and expected: test 4. |
@stevvooe I have something in mind and I started working on it already but don't want to create more issues and PRs here since the repo will be split shortly to avoid further work to do when moving. I'm doing a light refactor focused on validation stages though, the order will be discussed separately after I submit a PR. |
@runcom Sounds great! |
This issue was moved to opencontainers/image-tools#16 |
From #279 (comment)
Action:
oci-image-tool validate
should soften the error given when an unknown media type is encountered when validating a reference underrefs/
.Discussion: does the above work with media types found in manifests as well? Should we just print a warning and
exit 0
from the tool? Should we a flag which specifies the warning level to suppress? So, should we have more than just one warning level here? (the second level being a manifest, third being media types in descriptors , etc)/cc @stevvooe @vbatts @philips
The text was updated successfully, but these errors were encountered: