open-nomad/plugins/drivers
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
..
proto volumes: return better error messages for unsupported task drivers (#8030) 2020-05-21 09:18:02 -04:00
testutils fix spelling errors (#6985) 2020-04-20 09:28:19 -04:00
utils Remove some dead code 2019-01-08 09:11:48 -05:00
client.go volumes: return better error messages for unsupported task drivers (#8030) 2020-05-21 09:18:02 -04:00
cstructs.go drivers: re-export ResourceUsage structs 2019-01-08 09:11:47 -05:00
driver.go cleanup driver eventor goroutines 2020-05-26 11:04:04 -04:00
errors.go Standardize driver health description messages for all drivers 2019-01-06 22:06:38 -06:00
execstreaming.go implemment streaming exec handling in driver grpc handlers 2019-05-09 16:49:08 -04:00
plugin.go drivers: pass logger through driver plugin client 2019-01-25 09:38:41 -05:00
server.go driver/networking: don't recreate existing network namespaces 2019-09-25 14:58:17 -04:00
task_handle.go executor: add pre 0.9 client and wrapper 2019-01-18 18:30:58 -05:00
utils.go Add NetworkIsolation in TaskConfig (#6135) 2019-08-15 13:05:55 -04:00
utils_test.go Simplify proto conversion and handle swap 2019-03-30 15:18:28 -04:00
versions.go Add plugin API versioning to plugin loader and plugins 2018-12-18 16:48:00 -08:00