Description
The PersistentVolumeTest s have a custom helper for setting up ACLs in the master::Flags:
ACLs acls; hashset<string> roles; foreach (const FrameworkInfo& framework, frameworks) { mesos::ACL::RegisterFramework* acl = acls.add_register_frameworks(); acl->mutable_principals()->add_values(framework.principal()); acl->mutable_roles()->add_values(framework.role()); roles.insert(framework.role()); } flags.acls = acls; flags.roles = strings::join(",", roles);
This is no longer necessary with implicit roles.