Repository: mesos Updated Branches: refs/heads/master 68c66b496 -> 047df2867
Added task labels to mesos.proto. Review: https://reviews.apache.org/r/28154 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/77b9d3de Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/77b9d3de Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/77b9d3de Branch: refs/heads/master Commit: 77b9d3de108ee8399dee8eaf3240572395a26ccd Parents: 68c66b4 Author: Niklas Nielsen <[email protected]> Authored: Tue Nov 18 16:21:24 2014 -0800 Committer: Niklas Q. Nielsen <[email protected]> Committed: Tue Nov 18 16:21:24 2014 -0800 ---------------------------------------------------------------------- include/mesos/mesos.proto | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/77b9d3de/include/mesos/mesos.proto ---------------------------------------------------------------------- diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto index 35b9118..a123170 100644 --- a/include/mesos/mesos.proto +++ b/include/mesos/mesos.proto @@ -596,6 +596,9 @@ message TaskInfo { // A health check for the task (currently in *alpha* and initial // support will only be for TaskInfo's that have a CommandInfo). optional HealthCheck health_check = 8; + // Labels are free-form key value pairs which are exposed + // through master and slave endpoints. + repeated Label labels = 10; } @@ -927,3 +930,11 @@ message ContainerInfo { optional DockerInfo docker = 3; } + +/** + * Key, value pair used to store free form user-data. + */ +message Label { + required string key = 1; + optional string value = 2; +}
