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 03:53:57 UTC
[4/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/dc1908a3
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/dc1908a3
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/dc1908a3
Branch: refs/heads/master
Commit: dc1908a333453dab195307d28404913336bd594e
Parents: 2fe2bb2
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 15:40:31 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/dc1908a3/include/mesos/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index e39926e..d91c968 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -2742,6 +2742,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/dc1908a3/include/mesos/v1/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/mesos.proto b/include/mesos/v1/mesos.proto
index 2979f9e..6a1d011 100644
--- a/include/mesos/v1/mesos.proto
+++ b/include/mesos/v1/mesos.proto
@@ -2725,6 +2725,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;
}