open-nomad/vendor/github.com/hashicorp/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
acl.go HTTP API support for 'nomad ui -login' 2021-03-10 08:17:56 -05:00
agent.go api: nomad debug new /agent/host (#8325) 2020-07-02 09:51:25 -04:00
allocations.go oversubscription: adds CLI and API support 2021-03-30 16:55:58 -04:00
api.go Revert "Headers -> Header" 2021-01-06 17:12:22 +00:00
constraint.go Update vendored libraries 2020-10-21 15:46:56 -04:00
csi.go CSI: remove prefix matching from CSIVolumeByID and fix CLI prefix matching (#10158) 2021-03-18 14:32:40 -04:00
deployments.go multiregion CLI: nomad deployment unblock 2020-06-17 11:03:44 -04:00
evaluations.go
event_stream.go API: Event stream use full name instead of Eval/Alloc (#9509) 2020-12-03 11:48:18 -05:00
fs.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
jobs.go Don't parse the server-set fields of the job struct 2020-10-22 08:18:57 -04:00
namespace.go
nodes.go api: add new 'cores' field to task resources 2021-03-18 23:13:30 -04: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
quota.go
raw.go
recommendations.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
regions.go
resources.go oversubscription: adds CLI and API support 2021-03-30 16:55:58 -04:00
scaling.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
search.go
sentinel.go
services.go consul/connect: enable setting local_bind_address in upstream 2021-02-26 11:37:31 +00:00
status.go
system.go
tasks.go CSI: unique volume per allocation 2021-03-18 15:35:11 -04:00
utils.go