-
Notifications
You must be signed in to change notification settings - Fork 553
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 'status' to state.go #485
Conversation
Forgot to do this in previous PR. Signed-off-by: Doug Davis <[email protected]>
Cross-linking #462.
|
Wondering if having this be an enum might be better. |
can implementations still extend it? |
@duglin I guess nothing is stopping implementations as long as they support at the least the ones that we have in the spec. That said, I don't see why we wouldn't add any reasonable statuses to the spec. |
immediately runc will extend it with things like 'paused'. |
On Thu, Jun 02, 2016 at 06:51:36PM -0700, Doug Davis wrote:
runC has pause/resume, and in that context “paused” makes sense. But a. Tell runC (and other runtimes) to put its augmented status (a) is unfortunately noisy, but workable in the face of lifecycle |
If a runtime can add states, then it can also add state transitions to support those states. If one is using runc per the standard, then they wouldn't get into a paused state, so they could stick with what is in the spec. I think this wouldn't be a big issue in practice. |
On Fri, Jun 03, 2016 at 08:09:00AM -0700, Mrunal Patel wrote:
This assumes that the caller is always using OCI-oriented tools or |
We never did conclude whether to go with string or enum before merging... |
I'd say string for now because we only define 3 in the spec and allow for runtime defined states |
Forgot to do this in previous PR.
Signed-off-by: Doug Davis [email protected]