open-nomad/nomad/volumewatcher
Tim Gross 2854298089
csi: release claims via csi_hook postrun unpublish RPC (#8580)
Add a Postrun hook to send the `CSIVolume.Unpublish` RPC to the server. This
may forward client RPCs to the node plugins or to the controller plugins,
depending on whether other allocations on this node have claims on this
volume.

By making clients responsible for running the `CSIVolume.Unpublish` RPC (and
making the RPC available to a `nomad volume detach` command), the
volumewatcher becomes only used by the core GC job and we no longer need
async volume GC from job deregister and node update.
2020-08-06 14:51:46 -04:00
..
interfaces.go csi: update volumewatcher to use unpublish RPC (#8579) 2020-08-06 14:31:18 -04:00
interfaces_test.go csi: update volumewatcher to use unpublish RPC (#8579) 2020-08-06 14:31:18 -04:00
volume_watcher.go csi: release claims via csi_hook postrun unpublish RPC (#8580) 2020-08-06 14:51:46 -04:00
volume_watcher_test.go csi: update volumewatcher to use unpublish RPC (#8579) 2020-08-06 14:31:18 -04:00
volumes_watcher.go csi: update volumewatcher to use unpublish RPC (#8579) 2020-08-06 14:31:18 -04:00
volumes_watcher_test.go csi: update volumewatcher to use unpublish RPC (#8579) 2020-08-06 14:31:18 -04:00