1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-01 09:28:22 +01:00
phorge-phorge/src/applications/drydock/management
epriestley 1f6869a765 In "bin/drydock lease", take a JSON "--attributes" so we can accept complex values
Summary:
Depends on D19750. See T13210. The `bin/drydock lease` command makes it easier to request ad-hoc leases, but currently takes lease attributes in the form `--attributes x=y,a=b`.

This was okay for all leases at the time, but doesn't really work for modern WorkingCopy resources since they take a `repositories.map` which has a dictionary as a value. You can't specify that with `repositories.map=...`.

Instead, point `--attributes` at a JSON file or use `--attributes -` to read from stdin.

Test Plan: Used `--attributes` with a file and stdin to allocate working copy leases with repositories.

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Differential Revision: https://secure.phabricator.com/D19751
2018-10-26 06:09:20 -07:00
..
DrydockManagementCommandWorkflow.php Fix usage of fprintf() in bin/drydock command 2018-03-28 16:19:55 -07:00
DrydockManagementLeaseWorkflow.php In "bin/drydock lease", take a JSON "--attributes" so we can accept complex values 2018-10-26 06:09:20 -07:00
DrydockManagementReclaimWorkflow.php Make Drydock reclaim unused resources when it reaches a resource limit 2015-12-18 11:55:51 -08:00
DrydockManagementReleaseLeaseWorkflow.php Add a command queue to Drydock to manage lease/resource release 2015-09-23 07:42:08 -07:00
DrydockManagementReleaseResourceWorkflow.php Add a command queue to Drydock to manage lease/resource release 2015-09-23 07:42:08 -07:00
DrydockManagementUpdateLeaseWorkflow.php Add a command queue to Drydock to manage lease/resource release 2015-09-23 07:42:08 -07:00
DrydockManagementUpdateResourceWorkflow.php Add a command queue to Drydock to manage lease/resource release 2015-09-23 07:42:08 -07:00
DrydockManagementWorkflow.php Apply some autofix linter rules 2014-09-10 06:55:05 +10:00