open-nomad/nomad/volumewatcher
Tim Gross 23be116da0
csi: add -force flag to volume deregister (#8295)
The `nomad volume deregister` command currently returns an error if the volume
has any claims, but in cases where the claims can't be dropped because of
plugin errors, providing a `-force` flag gives the operator an escape hatch.

If the volume has no allocations or if they are all terminal, this flag
deletes the volume from the state store, immediately and implicitly dropping
all claims without further CSI RPCs. Note that this will not also
unmount/detach the volume, which we'll make the responsibility of a separate
`nomad volume detach` command.
2020-07-01 12:17:51 -04:00
..
batcher.go refactor: context is first parameter 2020-05-26 10:18:09 -04:00
batcher_test.go refactor: context is first parameter 2020-05-26 10:18:09 -04:00
interfaces.go csi: move volume claim release into volumewatcher (#7794) 2020-04-30 09:13:00 -04:00
interfaces_test.go csi: move volume claim release into volumewatcher (#7794) 2020-04-30 09:13:00 -04:00
volume_watcher.go csi: support Secrets parameter in CSI RPCs (#7923) 2020-05-11 17:12:51 -04:00
volume_watcher_test.go csi: move volume claim release into volumewatcher (#7794) 2020-04-30 09:13:00 -04:00
volumes_watcher.go {volume|deployment}watcher: check for nil batcher 2020-05-26 14:54:27 -04:00
volumes_watcher_test.go csi: add -force flag to volume deregister (#8295) 2020-07-01 12:17:51 -04:00