open-nomad/api
Mahmood Ali 18b581656d oversubscription: adds CLI and API support
This commit updates the API to pass the MemoryMaxMB field, and the CLI to show
the max set for the task.

Also, start parsing the MemoryMaxMB in hcl2, as it's set by tags.

A sample CLI output; note the additional `Max: ` for "task":

```
$ nomad alloc status 96fbeb0b
ID                  = 96fbeb0b-a0b3-aa95-62bf-b8a39492fd5c
[...]

Task "cgroup-fetcher" is "running"
Task Resources
CPU        Memory         Disk     Addresses
0/500 MHz  32 MiB/20 MiB  300 MiB

Task Events:
[...]

Task "task" is "running"
Task Resources
CPU        Memory          Disk     Addresses
0/500 MHz  176 KiB/20 MiB  300 MiB
           Max: 30 MiB

Task Events:
[...]
```
2021-03-30 16:55:58 -04:00
..
contexts api: added scaling_policy context to global search 2021-02-03 21:28:32 +00:00
internal/testutil Fixup uses of `sanity` (#10187) 2021-03-16 18:05:08 -04:00
acl.go HTTP API support for 'nomad ui -login' 2021-03-10 08:17:56 -05:00
acl_test.go HTTP API support for 'nomad ui -login' 2021-03-10 08:17:56 -05:00
agent.go
agent_test.go
allocations.go oversubscription: adds CLI and API support 2021-03-30 16:55:58 -04:00
allocations_test.go api: add Allocation client and server terminal status funcs. 2021-03-25 08:52:59 +01:00
api.go Revert "Headers -> Header" 2021-01-06 17:12:22 +00:00
api_test.go Revert "Headers -> Header" 2021-01-06 17:12:22 +00:00
compose_test.go
constraint.go Tag Job spec with HCLv2 tags 2020-10-21 14:05:46 -04:00
constraint_test.go
csi.go CSI: remove prefix matching from CSIVolumeByID and fix CLI prefix matching (#10158) 2021-03-18 14:32:40 -04:00
csi_test.go
deployments.go
evaluations.go
evaluations_test.go
event_stream.go API: Event stream use full name instead of Eval/Alloc (#9509) 2020-12-03 11:48:18 -05:00
event_stream_test.go API: Event stream use full name instead of Eval/Alloc (#9509) 2020-12-03 11:48:18 -05:00
fs.go
fs_test.go
go.mod Api/event stream payload values (#9277) 2020-11-05 13:04:18 -05:00
go.sum command: remove use of flag impls from consul 2020-12-11 07:58:20 -06:00
ioutil.go
ioutil_test.go
jobs.go Don't parse the server-set fields of the job struct 2020-10-22 08:18:57 -04:00
jobs_test.go api: add Resource.Canonicalize test and fix tests to handle ReservedCores field 2021-03-19 22:08:27 -04:00
namespace.go
namespace_test.go
nodes.go api: add new 'cores' field to task resources 2021-03-18 23:13:30 -04:00
nodes_test.go api: add field filters to /v1/{allocations,nodes} 2020-10-14 10:35:22 -07:00
operator.go configuration and oss components for licensing (#10216) 2021-03-23 09:08:14 -04:00
operator_autopilot.go
operator_metrics.go Metrics gotemplate support, debug bundle features (#9067) 2020-10-14 15:16:10 -04:00
operator_metrics_test.go agent: return req error if prometheus metrics are disabled. 2021-03-09 15:28:58 +01:00
operator_test.go
quota.go
quota_test.go
raw.go
recommendations.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
regions.go
regions_test.go
resources.go oversubscription: adds CLI and API support 2021-03-30 16:55:58 -04:00
resources_test.go api: add Resource.Canonicalize test and fix tests to handle ReservedCores field 2021-03-19 22:08:27 -04:00
scaling.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
scaling_test.go
search.go
search_test.go
sentinel.go
sentinel_test.go
services.go consul/connect: enable setting local_bind_address in upstream 2021-02-26 11:37:31 +00:00
services_test.go consul/connect: enable setting local_bind_address in upstream 2021-02-26 11:37:31 +00:00
status.go
status_test.go
system.go
system_test.go
tasks.go CSI: unique volume per allocation 2021-03-18 15:35:11 -04:00
tasks_test.go jobspec: add support for headers in artifact stanza 2020-11-13 12:03:54 -06:00
util_test.go appease the linter and fix an incorrect test 2021-01-08 19:38:25 +00:00
utils.go
utils_test.go