open-nomad/ui/app/templates/csi
Buck Doyle 543fb24764
Fix allocation count in CSI volumes table (#9515)
This closes #9495. As detailed in there, the collection query GET
/v1/volumes?type=csi doesn’t return ReadAllocs and WriteAllocs, so the #
Allocs cell was always showing 0 upon first load because it was derived
from the lengths of those arrays. This uses the heretofore-ignored
CurrentReaders and CurrentWriters values to calculate the total instead.

The single-resource query GET /v1/volume/csi%2F:id doesn’t return
CurrentReaders and CurrentWriters that absence doesn’t override the
stored values when visiting an individual item.

Thanks to @apollo13 for reporting this and to @tgross for the API logs
and suggestion.
2020-12-07 08:51:41 -06:00
..
plugins csi/ui: show Node Only for volumes when controllers aren't required (#9416) 2020-11-25 14:50:33 -05:00
volumes Fix allocation count in CSI volumes table (#9515) 2020-12-07 08:51:41 -06:00
plugins.hbs Set up routes, controllers, and template basics for the plugins page 2020-05-06 17:21:43 -07:00
volumes.hbs UI: Support for CSI (#7446) 2020-03-25 07:51:26 -05:00