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-11-25 16:44:06 -05:00
2020-11-23 10:25:30 -06:00
2020-08-31 08:45:59 -04:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-12 08:47:05 -04:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2018-04-18 12:02:11 -04:00
2018-04-18 12:02:11 -04:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2019-05-12 22:04:50 -04:00
2019-05-12 22:04:50 -04:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-11-16 08:28:52 -05:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2018-04-18 12:02:11 -04:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2020-06-22 10:27:25 -04:00
2020-11-11 20:52:57 +00:00
2020-03-31 09:45:21 -04:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2018-05-24 12:44:21 -04:00
2020-10-19 09:30:15 -04:00
2020-11-19 16:28:39 -05:00
2018-04-18 12:02:11 -04:00
2020-11-02 09:57:35 -08:00
2020-11-20 13:38:29 -05:00
2020-11-02 09:57:35 -08:00
2020-11-20 13:38:29 -05:00
2020-11-02 09:57:35 -08:00
2020-11-20 13:38:29 -05:00
2020-11-02 09:57:35 -08:00
2020-11-02 18:00:53 -05:00
2018-12-12 09:17:31 -05:00
2018-12-10 12:18:24 -05:00
2020-11-10 14:56:20 -05:00
2020-11-10 14:56:20 -05:00
2018-12-04 11:50:59 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-23 10:25:30 -06:00
2019-12-19 14:59:12 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2019-04-12 20:55:55 +00:00
2020-10-21 14:05:46 -04:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-21 14:05:46 -04:00
2020-11-20 13:38:29 -05:00
2020-10-06 09:58:46 +02:00
2020-11-20 13:38:29 -05:00
2020-10-06 09:58:46 +02:00
2020-11-20 13:38:29 -05:00
2020-11-02 10:24:49 -08:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-21 14:05:46 -04:00
2020-11-20 13:38:29 -05:00
2018-04-18 12:02:11 -04:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-07-22 10:21:56 -04:00
2019-09-24 09:20:41 -07:00
2020-11-19 16:28:39 -05:00
2020-10-14 15:16:10 -04:00
2020-11-23 08:10:10 -05:00
2020-11-02 10:24:49 -08:00
2020-11-02 10:24:49 -08:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2019-09-09 10:04:41 -07:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2018-06-14 15:48:01 +02:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2017-12-18 14:29:41 -08:00
2018-04-18 12:02:11 -04:00
2020-11-12 11:25:28 -05:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-09-30 17:02:37 -04:00
2020-11-20 13:38:29 -05:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-11-20 13:38:29 -05:00
2018-04-18 12:02:11 -04:00
2020-10-05 16:07:41 +02:00
2020-06-19 12:19:38 -04:00
2020-10-21 14:05:46 -04:00
2020-11-19 16:28:39 -05:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2020-05-21 20:04:38 -04:00
2018-04-18 12:02:11 -04:00
2020-08-31 13:56:54 -04:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-03-23 13:58:30 -04:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-09-24 11:44:59 -04:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2018-04-18 12:02:11 -04:00
2020-11-11 20:52:57 +00:00
2020-11-20 13:38:29 -05:00
2020-11-11 20:52:57 +00:00
2020-11-20 13:38:29 -05:00
2020-11-11 20:52:57 +00:00
2020-11-20 13:38:29 -05:00
2020-11-11 11:13:43 +00:00
2020-11-20 13:38:29 -05:00
2020-11-06 11:16:24 +01:00
2020-10-05 15:18:30 +02:00
2020-11-20 13:38:29 -05:00
2020-10-28 14:32:16 +00:00
2020-11-20 13:38:29 -05:00
2020-10-06 12:18:17 +02:00
2020-10-06 12:18:17 +02:00
2020-10-05 15:18:30 +02:00
2017-09-19 10:08:23 -05:00
2020-11-20 13:38:29 -05:00
2017-09-19 10:08:23 -05:00
2020-11-20 13:38:29 -05:00
2017-09-19 10:08:23 -05:00
2020-11-20 13:38:29 -05:00
2017-09-19 10:08:23 -05:00
2020-11-20 13:38:29 -05:00
2018-04-18 12:02:11 -04:00
2020-11-20 13:38:29 -05:00
2020-11-19 16:28:39 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2018-04-18 12:02:11 -04:00
2020-10-19 09:30:15 -04:00
2020-11-19 16:28:39 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-01-13 11:34:46 +01:00
2020-01-13 11:34:46 +01:00
2020-01-13 11:34:46 +01:00
2020-01-13 11:34:46 +01:00
2020-11-19 16:28:39 -05:00
2020-06-25 12:44:19 -04:00
2018-04-18 12:02:11 -04:00
2020-11-20 13:38:29 -05:00
2020-11-20 13:38:29 -05:00
2020-03-23 13:58:30 -04:00
2020-05-11 17:12:51 -04:00
2020-11-20 13:38:29 -05:00
2020-03-23 13:59:25 -04:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-08-11 10:18:54 -04:00