- 
                Notifications
    
You must be signed in to change notification settings  - Fork 591
 
[ Runtime ] Allow for excluding pid from state #459
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -16,6 +16,7 @@ There is no requirement that it be unique across hosts. | |
| The ID is provided in the state because hooks will be executed with the state as the payload. | ||
| This allows the hooks to perform cleanup and teardown logic after the runtime destroys its own state. | ||
| * **`pid`**: (int) is the ID of the main process within the container, as seen by the host. | ||
| The pid MAY be excluded or set to a value indicating empty or null if it is not seen by the host. | ||
| 
         There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd rather phrase this as: 
 although that's tied up in specifying platforms for VM-based containers. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This phrasing looks wrong to me as well (especially "seen by the host"). However, I would also want that we specify what an "empty or null" value means for a PID. Should we make it a pointer? Or just make it  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pointers are our usual pattern for optional fields. I don't think a zero PID is clearly enough “no-op in the spec” to qualify for the non-pointer-ok exception listed there.  | 
||
| * **`bundlePath`**: (string) is the absolute path to the container's bundle directory. | ||
| This is provided so that consumers can find the container's configuration and root filesystem on the host. | ||
| 
     | 
||
| 
          
            
          
           | 
    ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could change all state fields phrased like:
pid: (int, OPTIONAL) ...like we did in all other places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have that in flight with #507. I'll pull that apart to isolate it from the
creatingchange.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulled off into #664 (ended up being just “cherry-pick the tip commit from #507”).