Skip to content
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

[Runtime] Allow for excluding pid from state #894

Closed
wants to merge 1 commit into from

Conversation

RobDolinMS
Copy link
Collaborator

Re-base of #459; does not impact functionality but may be helpful for certification

Signed-off-by: Rob Dolin robdolin@microsoft.com

Re-base of #459; does not impact functionality but may be helpful for certification

Signed-off-by: Rob Dolin <robdolin@microsoft.com>
Copy link
Contributor

@wking wking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably also add a pointer to the Go property and remove pid from the required section of the JSON Schema regardless of how this PR works out. I can submit a separate PR for those if we don't want to handle them here.

@@ -23,6 +23,7 @@ The state of a container includes the following properties:

Additional values MAY be defined by the runtime, however, they MUST be used to represent new runtime states not defined above.
* **`pid`** (int, REQUIRED when `status` is `created` or `running`) is the ID of the container process, 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you have it, this conflicts with the REQUIRED in the line above. Maybe pull this entry down below this list and guard it (like we do here).

For systems where the container process ID is visible from the [runtime namespace](glossary.md#runtime-namespace), the state object supports the following additional properties:

* **`pid`** (int, REQUIRED when `status` is `created` or `running`) is the ID of the container process, as seen by the host.

That also gives us an opportunity to address #731 if we want to.

@crosbymichael
Copy link
Member

We are going to take #895

@wking
Copy link
Contributor

wking commented Jul 12, 2017

With the PR closed, someone with write access should probably delete the local RobDolinMS-pid-not-visible branch.

@mrunalp mrunalp deleted the RobDolinMS-pid-not-visible branch July 12, 2017 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants