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 2015/12/03 00:17:06 UTC
[2/5] mesos git commit: Introduced ACL protobuf definitions for
dynamic reservation.
Introduced ACL protobuf definitions for dynamic reservation.
Note: this review is continued from https://reviews.apache.org/r/37002/
Review: https://reviews.apache.org/r/39985
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c70ff917
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c70ff917
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c70ff917
Branch: refs/heads/master
Commit: c70ff917cada6f78cf05cd33b0b36b282b2cb2a7
Parents: c56ed0c
Author: Greg Mann <gr...@mesosphere.io>
Authored: Wed Dec 2 12:07:19 2015 -0800
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed Dec 2 15:06:51 2015 -0800
----------------------------------------------------------------------
include/mesos/authorizer/authorizer.proto | 26 +++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/c70ff917/include/mesos/authorizer/authorizer.proto
----------------------------------------------------------------------
diff --git a/include/mesos/authorizer/authorizer.proto b/include/mesos/authorizer/authorizer.proto
index f5ea38e..74fcc86 100644
--- a/include/mesos/authorizer/authorizer.proto
+++ b/include/mesos/authorizer/authorizer.proto
@@ -23,11 +23,9 @@ option java_outer_classname = "Protos";
/**
- * ACLs used for local authorization (See authorization.md file in the
- * docs).
+ * ACLs used for local authorization (See authorization.md file in the docs).
*/
message ACL {
-
// Entity is used to describe a subject(s) or an object(s) of an ACL.
// NOTE:
// To allow everyone access to an Entity set its type to 'ANY'.
@@ -68,6 +66,26 @@ message ACL {
// Objects.
required Entity framework_principals = 2;
}
+
+ // Specifies which Resources a principal can reserve.
+ message ReserveResources {
+ // Subjects: Framework principal or Operator username.
+ required Entity principals = 1;
+
+ // Objects: The kind of Resources that can be reserved.
+ // NOTE: Currently the only valid values are ANY and NONE.
+ required Entity resources = 2;
+ }
+
+ // Specifies which principals can unreserve which principals'
+ // reserved resources.
+ message UnreserveResources {
+ // Subjects: Framework principal or Operator username.
+ required Entity principals = 1;
+
+ // Objects: Principal of the entity that reserved the resources.
+ required Entity reserver_principals = 2;
+ }
}
@@ -95,4 +113,6 @@ message ACLs {
repeated ACL.RegisterFramework register_frameworks = 2;
repeated ACL.RunTask run_tasks = 3;
repeated ACL.ShutdownFramework shutdown_frameworks = 4;
+ repeated ACL.ReserveResources reserve_resources = 5;
+ repeated ACL.UnreserveResources unreserve_resources = 6;
}