Add endpoint to get all nodes meeting memory & disk requirements for a server; closes #1012

This commit is contained in:
Dane Everitt 2021-01-10 13:08:43 -08:00
parent ef3f8586c5
commit ff21d83e2d
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 87 additions and 5 deletions

View file

@ -197,6 +197,7 @@ class ServerCreationService
*/
private function configureDeployment(array $data, DeploymentObject $deployment): Allocation
{
/** @var \Illuminate\Support\Collection $nodes */
$nodes = $this->findViableNodesService->setLocations($deployment->getLocations())
->setDisk(Arr::get($data, 'disk'))
->setMemory(Arr::get($data, 'memory'))