Files
nomad/command/agent
Tim Gross 0c2732ddce CSI: replace structs->api with serialization extension (#12583)
The CSI HTTP API has to transform the CSI volume to redact secrets,
remove the claims fields, and to consolidate the allocation stubs into
a single slice of alloc stubs. This was done manually in #8590 but
this is a large amount of code and has proven both very bug prone
(see #8659, #8666, #8699, #8735, and #12150) and requires updating
lots of code every time we add a field to volumes or plugins.

In #10202 we introduce encoding improvements for the `Node` struct
that allow a more minimal transformation. Apply this same approach to
serializing `structs.CSIVolume` to API responses.

Also, the original reasoning behind #8590 for plugins no longer holds
because the counts are now denormalized within the state store, so we
can simply remove this transformation entirely.
2022-04-15 14:29:34 -04:00
..
2021-10-01 10:14:28 -04:00
2022-04-09 13:22:44 +02:00
2022-04-07 20:21:26 +00:00
2021-10-01 10:14:28 -04:00
2018-10-16 16:56:55 -07:00
2021-10-01 10:14:28 -04:00
2021-05-07 13:58:40 -04:00
2021-10-01 10:14:28 -04:00
2018-09-13 10:43:40 -07:00
2018-02-15 13:59:02 -08:00
2015-09-06 18:39:03 -07:00
2021-10-01 10:14:28 -04:00
2019-01-22 15:44:31 -08:00
2021-10-01 10:14:28 -04:00
2022-03-25 13:43:33 -05:00