open-nomad/website/pages/api-docs
Tim Gross 4e79ddea45
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
..
acl-policies.mdx [docs] Update redirects and links for learn.hashicorp.com (#8598) 2020-09-29 12:48:32 -04:00
acl-tokens.mdx [docs] Update redirects and links for learn.hashicorp.com (#8598) 2020-09-29 12:48:32 -04:00
agent.mdx Format docs website code and mdx 2020-10-02 13:31:40 -04:00
allocations.mdx document `api.Allocation.Job` field, to address issue from #9386 2020-11-18 15:00:52 +00:00
client.mdx fix some highlighting issues 2020-05-06 16:12:34 -04:00
deployments.mdx Format docs website code and mdx 2020-10-02 13:31:40 -04:00
evaluations.mdx fix some highlighting issues 2020-05-06 16:12:34 -04:00
events.mdx Add event sink API and CLI commands (#9226) 2020-11-02 09:57:35 -08:00
index.mdx docs: namespaces are oss in Nomad 1.0 2020-10-22 15:26:32 -07:00
jobs.mdx docs: make dispatch payload size limit unambiguous 2020-11-19 12:06:49 -05:00
json-jobs.mdx docs: namespaces are oss in Nomad 1.0 2020-10-22 15:26:32 -07:00
libraries-and-sdks.mdx docs: move Ruby SDK to unsupported listing. 2020-11-16 11:38:27 +01:00
metrics.mdx fix shell-session snippet error 2020-05-18 16:53:06 -04:00
namespaces.mdx docs: namespaces are oss in Nomad 1.0 2020-10-22 15:26:32 -07:00
nodes.mdx docs: document #9055 2020-10-14 10:41:32 -07:00
operator.mdx Format docs website code and mdx 2020-10-02 13:31:40 -04:00
plugins.mdx correcting CSI Plugins API sample response 2020-07-07 16:17:23 -05:00
quotas.mdx fix shell-session snippet error 2020-05-18 16:53:06 -04:00
recommendations.mdx docs: add recommendations API documentation. 2020-10-27 16:23:38 +01:00
regions.mdx fix shell-session snippet error 2020-05-18 16:53:06 -04:00
scaling-policies.mdx docs: update scaling policy API docs based on DAS update. 2020-10-27 16:24:38 +01:00
search.mdx docs: namespaces are oss in Nomad 1.0 2020-10-22 15:26:32 -07:00
sentinel-policies.mdx [docs] Update redirects and links for learn.hashicorp.com (#8598) 2020-09-29 12:48:32 -04:00
status.mdx fix shell-session snippet error 2020-05-18 16:53:06 -04:00
system.mdx fix shell-session snippet error 2020-05-18 16:53:06 -04:00
ui.mdx new website 2020-02-06 18:45:31 -05:00
validate.mdx fix shell-session snippet error 2020-05-18 16:53:06 -04:00
volumes.mdx csi/api: populate ReadAllocs/WriteAllocs fields (#9377) 2020-11-25 16:44:06 -05:00