You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by gi...@apache.org on 2017/08/15 04:31:16 UTC

[5/8] mesos git commit: Added container PID namespace control protobuf field in LinuxInfo.

Added container PID namespace control protobuf field in LinuxInfo.

User facing interface for container configurable PID namespace.

Review: https://reviews.apache.org/r/61270/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/a997059e
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/a997059e
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/a997059e

Branch: refs/heads/1.4.x
Commit: a997059ebdb577431038f54f9dc819a0648f0d0b
Parents: 92feb52
Author: Gilbert Song <so...@gmail.com>
Authored: Sun Aug 13 19:51:54 2017 -0700
Committer: Gilbert Song <so...@gmail.com>
Committed: Mon Aug 14 21:30:45 2017 -0700

----------------------------------------------------------------------
 include/mesos/mesos.proto    | 8 ++++++++
 include/mesos/v1/mesos.proto | 8 ++++++++
 2 files changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/a997059e/include/mesos/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index 50a5caf..2cef6fc 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -2737,6 +2737,14 @@ message LinuxInfo {
   // Represents the set of capabilities that the task will
   // be executed with.
   optional CapabilityInfo effective_capabilities = 3;
+
+  // If set as 'true', the container shares the pid namespace with
+  // its parent. If the container is a top level container, it will
+  // share the pid namespace with the agent. If the container is a
+  // nested container, it will share the pid namespace with its
+  // parent container. This field will be ignored if 'namespaces/pid'
+  // isolator is not enabled.
+  optional bool share_pid_namespace = 4;
 }
 
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/a997059e/include/mesos/v1/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/mesos.proto b/include/mesos/v1/mesos.proto
index 9d47a8a..4f8e0a0 100644
--- a/include/mesos/v1/mesos.proto
+++ b/include/mesos/v1/mesos.proto
@@ -2720,6 +2720,14 @@ message LinuxInfo {
   // Represents the set of capabilities that the task will
   // be executed with.
   optional CapabilityInfo effective_capabilities = 3;
+
+  // If set as 'true', the container shares the pid namespace with
+  // its parent. If the container is a top level container, it will
+  // share the pid namespace with the agent. If the container is a
+  // nested container, it will share the pid namespace with its
+  // parent container. This field will be ignored if 'namespaces/pid'
+  // isolator is not enabled.
+  optional bool share_pid_namespace = 4;
 }