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

[04/12] mesos git commit: Added HOST_PATH volume source protobuf.

Added HOST_PATH volume source protobuf.

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


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

Branch: refs/heads/master
Commit: e0e62f63d2c3ee5f94e12aa436dddfb77faf4a63
Parents: d2058f1
Author: Jie Yu <yu...@gmail.com>
Authored: Tue Aug 1 17:05:33 2017 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Tue Aug 29 08:55:32 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/e0e62f63/include/mesos/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index 86936cf..eede082 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -2530,8 +2530,9 @@ message Volume {
       // in a backwards-compatible way. See: MESOS-4997.
       UNKNOWN = 0;
 
-      // TODO(gyliu513): Add HOST_PATH and IMAGE as volume source type.
+      // TODO(gyliu513): Add IMAGE as volume source type.
       DOCKER_VOLUME = 1;
+      HOST_PATH = 4;
       SANDBOX_PATH = 2;
       SECRET = 3;
     }
@@ -2547,6 +2548,11 @@ message Volume {
       optional Parameters driver_options = 3;
     }
 
+    // Absolute path pointing to a directory or file on the host.
+    message HostPath {
+      required string path = 1;
+    }
+
     // Describe a path from a container's sandbox. The container can
     // be the current container (SELF), or its parent container
     // (PARENT). PARENT allows all child containers to share a volume
@@ -2575,6 +2581,7 @@ message Volume {
     // The source of the volume created by docker volume driver.
     optional DockerVolume docker_volume = 2;
 
+    optional HostPath host_path = 5;
     optional SandboxPath sandbox_path = 3;
 
     // The volume/secret isolator uses the secret-fetcher module (third-party or

http://git-wip-us.apache.org/repos/asf/mesos/blob/e0e62f63/include/mesos/v1/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/mesos.proto b/include/mesos/v1/mesos.proto
index 20d9ecf..8c6246e 100644
--- a/include/mesos/v1/mesos.proto
+++ b/include/mesos/v1/mesos.proto
@@ -2513,8 +2513,9 @@ message Volume {
       // in a backwards-compatible way. See: MESOS-4997.
       UNKNOWN = 0;
 
-      // TODO(gyliu513): Add HOST_PATH and IMAGE as volume source type.
+      // TODO(gyliu513): Add IMAGE as volume source type.
       DOCKER_VOLUME = 1;
+      HOST_PATH = 4;
       SANDBOX_PATH = 2;
       SECRET = 3;
     }
@@ -2530,6 +2531,11 @@ message Volume {
       optional Parameters driver_options = 3;
     }
 
+    // Absolute path pointing to a directory or file on the host.
+    message HostPath {
+      required string path = 1;
+    }
+
     // Describe a path from a container's sandbox. The container can
     // be the current container (SELF), or its parent container
     // (PARENT). PARENT allows all child containers to share a volume
@@ -2558,6 +2564,7 @@ message Volume {
     // The source of the volume created by docker volume driver.
     optional DockerVolume docker_volume = 2;
 
+    optional HostPath host_path = 5;
     optional SandboxPath sandbox_path = 3;
 
     // The volume/secret isolator uses the secret-fetcher module (third-party or