-
Notifications
You must be signed in to change notification settings - Fork 558
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 config validation and environment tests #109
Comments
@mrunalp by environment testing you mean generating an actual bundle and testing, from inside of the container, that the runtime ran correctly, right? |
@philips Yes, I have updated the description to clarify that. |
On Wed, Aug 12, 2015 at 04:43:28PM -0700, Mrunal Patel wrote:
I'm pretty sure we all agree that these are important, but I don't For config validation, I'm open to including more machine-parsable It would be nice if we could offer that config validation as a web Should this discussion be happening on the mailing list (see #104)? |
@wking having a validator in specs is most logical
|
On Fri, Aug 14, 2015 at 04:09:38PM -0700, Vincent Batts wrote:
I imagine the relationship between config-validators and specs is Can you give more background on why it seems more logical to you to |
On Sat, Aug 15, 2015 at 2:30 PM, W. Trevor King [email protected]
By virtue of it being a spec, there is nothing stopping implementations and Can you give more background on why it seems more logical to you to
vb |
On Sun, Aug 16, 2015 at 10:51:38AM -0700, Vincent Batts wrote:
Is that “we don't intend to version the in-repo validator
I'm not familiar enough with Ruby or Go to know how they handle a
The OCI already has separate repositories for the spec Of course, many projects version their specification in the same
I'm having trouble parsing this sentence. Are you worried that the |
The 'validating the config' and 'comparing the real runtime environment with what defined in the config file' are both covered in OCT. I just wrote a simple tool to do the configuration validating work. |
By making the validating more automatically, I added extra 'Tags' to the spec struct. For example: It might be better to put such Tag to the spec.go and keep spec.go same with config.md. |
On Thu, Aug 20, 2015 at 03:12:23AM -0700, 梁辰晔 (Liang Chenye) wrote:
Did you mean OCI? I think we all agree on that point. The
I like this separate-repository approach, but you'll probably want to |
Ah, OCT meant 1. On Thu, Aug 20, 2015 at 03:20:51AM -0700, 梁辰晔 (Liang Chenye) wrote:
Using the ‘check’ to slot in more complicated logic 2 is a I do think ‘mandatory’ is a clear win, since we use that sort of logic |
You means adding another key-function map to do all the semantics check, for example: |
On Thu, Aug 20, 2015 at 07:05:20PM -0700, 梁辰晔 (Liang Chenye) wrote:
I mean something like: func checkExtra(value reflect.Value, path []string) err error { But if you'd rather store that in a map of path-keys and associated |
Misc tiny bugs found during validation tool developing.
|
@liangchenye Thanks for reporting these issues. I have created #159 to handle 2. Other PRs on the way. |
This is valid. What do you find incorrect/unclear about it? |
@liangchenye #160 to address 3. |
On Tue, Sep 08, 2015 at 04:57:15AM -0700, 梁辰晔 (Liang Chenye) wrote:
Duplicate of #136?
I'd rather drop the leading RLIMIT_ from linux.rlimits.type. |
Because 'destination' is no longer exist in the 'Mount' struct. @wking |
c18c283 (Change layout of mountpoints and mounts, 2015-09-02, opencontainers#136) removed the destination field from the Go type and examples, but forgot to remove it from the documentation [1]. Fix that with this commit. [1]: opencontainers#109 (comment) Reported-by: 梁辰晔 (Liang Chenye) <[email protected]> Signed-off-by: W. Trevor King <[email protected]>
closing in favor of the #219 tracker |
The spec should have testing tools for validating the config and testing that an implementation provides the expected environment for the container process. This will involve launching a container process from a bundle that will introspect to make sure that the runtime set it up correctly.
The text was updated successfully, but these errors were encountered: