open-nomad/client/pluginmanager/drivermanager
Mahmood Ali 2588b3bc98 cleanup driver eventor goroutines
This fixes few cases where driver eventor goroutines are leaked during
normal operations, but especially so in tests.

This change makes few modifications:

First, it switches drivers to use `Context`s to manage shutdown events.
Previously, it relied on callers invoking `.Shutdown()` function that is
specific to internal drivers only and require casting.  Using `Contexts`
provide a consistent idiomatic way to manage lifecycle for both internal
and external drivers.

Also, I discovered few places where we don't clean up a temporary driver
instance in the plugin catalog code, where we dispense a driver to
inspect and validate the schema config without properly cleaning it up.
2020-05-26 11:04:04 -04:00
..
state csi: docstring and log message fixups (#7327) 2020-03-23 13:58:30 -04:00
instance.go cleanup driver eventor goroutines 2020-05-26 11:04:04 -04:00
instance_test.go drivermanager: attempt dispense on reattachment failure 2020-02-15 00:50:06 -05:00
manager.go implement client endpoint of nomad exec 2019-05-09 16:49:08 -04:00
manager_test.go s/mananger/manager 2019-03-04 12:25:54 -06:00
testing.go goimports until make check is happy 2019-01-23 06:27:14 -08:00