Project: mesos
Issue MESOS-2305: Refactor validators in Master.
There are several motivation for this. We are in the process of adding dynamic reservations and persistent volumes support in master. To do that, master needs to validate relevant operations from the framework (See Offer::Operation in mesos.proto). The existing validator style in master is hard to extend, compose and re-use. Another motivation for this is for unit testing (MESOS-1064). Right now, we write integration tests for those validators which is unfortunate.
Story points: 3