-
Notifications
You must be signed in to change notification settings - Fork 147
spec: clarification for event handlers #58
Comments
On Fri, Dec 19, 2014 at 6:20 AM, Maciej Pasternacki
There should be only one, we should clarify that.
Hrm, that is a good question. I am fine adding a gid/uid on that.
Parallel with the current app's environment.
Sounds good! Brandon |
|
If the event handlers need to be unique, why not use a JSON object instead of an array. Like you do with annotations? |
+1 on the JSON object suggestion, was about to ask that myself (asked in #62, which seems to be a better place for that). |
For a little background: that was actually the case in earlier versions of the spec. The motivation for changing was that we had inconsistency between different fields - some were maps with user defined keys (as you're suggesting), and others were lists of key/value pairs (c.f. mountPoints, isolators, labels, etc). The nice thing about the latter is that it is then clear that everything on the left (i.e. the "key") is part of the schema and everything on the right is defined by users. It does mean it is a little more effort to parse/validate (e.g. since we need to guarantee uniqueness ourselves instead of delegating to JSON) but that is what we have computers for after all. Annotations are the glaring exception remaining to this.. |
Capturing the other question raised in #62:
|
normalize cache key for root in ExpandSchema
chown
-ing workspace for process, which requires root) to let the main process run as a non-privileged user.It may be useful to have event handlers more parameterized: it should be possible to specify at least user, group, and environment for the handler. If you are not opposed to that idea, I will prepare a pull request.
The text was updated successfully, but these errors were encountered: