Add endpoint to get all nodes meeting memory & disk requirements for a server; closes #1012
This commit is contained in:
parent
ef3f8586c5
commit
ff21d83e2d
5 changed files with 87 additions and 5 deletions
|
@ -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'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue