This is an automated email from the ASF dual-hosted git repository. asekretenko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 8369e77b23de9453156626344a3ea0e36b4dd529 Author: Andrei Sekretenko <[email protected]> AuthorDate: Mon Sep 7 21:42:32 2020 +0200 Added offer constraints to the `GetFrameworks` protobuf. Review: https://reviews.apache.org/r/72841 --- include/mesos/master/master.proto | 6 ++++++ include/mesos/v1/master/master.proto | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/include/mesos/master/master.proto b/include/mesos/master/master.proto index 021dadc..d51350b 100644 --- a/include/mesos/master/master.proto +++ b/include/mesos/master/master.proto @@ -22,6 +22,8 @@ import "mesos/maintenance/maintenance.proto"; import "mesos/quota/quota.proto"; +import "mesos/scheduler/scheduler.proto"; + package mesos.master; option cc_enable_arenas = true; @@ -488,11 +490,15 @@ message Response { optional TimeInfo reregistered_time = 5; optional TimeInfo unregistered_time = 6; + // NOTE: Offers, inverse offers, allocated/offered resources + // and offer constraints are never reported via master API events. repeated Offer offers = 7; repeated InverseOffer inverse_offers = 8; repeated Resource allocated_resources = 9; repeated Resource offered_resources = 10; + + optional scheduler.OfferConstraints offer_constraints = 12; } // Frameworks that have subscribed with the master. Note that this includes diff --git a/include/mesos/v1/master/master.proto b/include/mesos/v1/master/master.proto index 488fe29..6735228 100644 --- a/include/mesos/v1/master/master.proto +++ b/include/mesos/v1/master/master.proto @@ -23,6 +23,8 @@ import "mesos/v1/mesos.proto"; import "mesos/v1/maintenance/maintenance.proto"; +import "mesos/v1/scheduler/scheduler.proto"; + import "mesos/v1/quota/quota.proto"; package mesos.v1.master; @@ -489,11 +491,15 @@ message Response { optional TimeInfo reregistered_time = 5; optional TimeInfo unregistered_time = 6; + // NOTE: Offers, inverse offers, allocated/offered resources + // and offer constraints are never reported via master API events. repeated Offer offers = 7; repeated InverseOffer inverse_offers = 8; repeated Resource allocated_resources = 9; repeated Resource offered_resources = 10; + + optional scheduler.OfferConstraints offer_constraints = 12; } // Frameworks that have subscribed with the master. Note that this includes
