This is an automated email from the ASF dual-hosted git repository. qianzhang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 90e5434544da9886cd6f2d87b73e3246292af107 Author: Qian Zhang <[email protected]> AuthorDate: Tue Oct 13 09:58:44 2020 +0800 Corrected the example of the managed CSI plugin. Review: https://reviews.apache.org/r/72846 --- docs/configuration/agent.md | 8 +------- src/slave/flags.cpp | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/docs/configuration/agent.md b/docs/configuration/agent.md index 4899202..a8286d1 100644 --- a/docs/configuration/agent.md +++ b/docs/configuration/agent.md @@ -1528,16 +1528,10 @@ Example config files in this directory: "containers": [ { "services": [ - "CONTROLLER_SERVICE", "NODE_SERVICE" ], "command": { - "shell": false, - "value": "managed-plugin", - "arguments": [ - "managed-plugin", - "--endpoint=$(CSI_ENDPOINT)" - ] + "value": "<path-to-managed-plugin> --endpoint=$CSI_ENDPOINT" }, "resources": [ {"name": "cpus", "type": "SCALAR", "scalar": {"value": 0.1}}, diff --git a/src/slave/flags.cpp b/src/slave/flags.cpp index 878788c..e66b464 100644 --- a/src/slave/flags.cpp +++ b/src/slave/flags.cpp @@ -129,16 +129,10 @@ mesos::internal::slave::Flags::Flags() " \"containers\": [\n" " {\n" " \"services\": [\n" - " \"CONTROLLER_SERVICE\",\n" " \"NODE_SERVICE\"\n" " ],\n" " \"command\": {\n" - " \"shell\": false,\n" - " \"value\": \"managed-plugin\",\n" - " \"arguments\": [\n" - " \"managed-plugin\",\n" - " \"--endpoint=$(CSI_ENDPOINT)\"\n" - " ]\n" + " \"value\": \"<path-to-managed-plugin> --endpoint=$CSI_ENDPOINT\"\n" " },\n" " \"resources\": [\n" " {\"name\": \"cpus\", \"type\": \"SCALAR\", \"scalar\": {\"value\": 0.1}},\n" // NOLINT(whitespace/line_length)
