Files
nomad/command/agent
Tim Gross 8351c3f9d6 csi/api: populate ReadAllocs/WriteAllocs fields (#9377)
The API is missing values for `ReadAllocs` and `WriteAllocs` fields, resulting
in allocation claims not being populated in the web UI. These fields mirror
the fields in `nomad/structs.CSIVolume`. Returning a separate list of stubs
for read and write would be ideal, but this can't be done without either
bloating the API response with repeated full `Allocation` data, or causing a
panic in previous versions of the CLI.

The `nomad/structs` fields are persisted with nil values and are populated
during RPC, so we'll do the same in the HTTP API and populate the `ReadAllocs`
and `WriteAllocs` fields with a map of allocation IDs, but with null
values. The web UI will then create its `ReadAllocations` and
`WriteAllocations` fields by mapping from those IDs to the values in
`Allocations`, instead of flattening the map into a list.
2020-11-25 16:44:06 -05:00
..
2020-01-09 15:15:10 -05:00
2020-10-22 12:21:03 -04:00
2018-03-11 17:43:19 +00:00
2017-10-13 13:12:20 -07:00
2020-10-22 12:21:03 -04:00
2020-10-22 12:21:03 -04:00
2020-05-28 15:40:17 -04:00
2020-10-22 12:21:03 -04:00
2020-10-22 12:21:03 -04:00
2018-10-16 16:56:55 -07:00
2020-10-14 12:23:25 -07:00
2020-10-23 14:23:00 -04:00
2017-07-20 09:36:34 -07:00
2018-09-13 10:43:40 -07:00
2020-06-07 15:46:23 -04:00
2017-07-20 09:36:34 -07:00
2018-09-13 10:43:40 -07:00
2018-09-13 10:43:40 -07:00
2017-09-07 17:04:21 -07:00
2018-02-15 13:59:02 -08:00
2017-07-20 09:36:34 -07:00
2015-09-06 18:39:03 -07:00
2017-09-19 10:08:23 -05:00
2019-01-22 15:44:31 -08:00
2019-01-22 15:44:31 -08:00
2017-07-20 09:36:34 -07:00