open-nomad/client/allocrunner
Seth Hoenig 5dd8aa3e27 client: enforce max_kill_timeout client configuration
This PR fixes a bug where client configuration max_kill_timeout was
not being enforced. The feature was introduced in 9f44780 but seems
to have been removed during the major drivers refactoring.

We can make sure the value is enforced by pluming it through the DriverHandler,
which now uses the lesser of the task.killTimeout or client.maxKillTimeout.
Also updates Event.SetKillTimeout to require both the task.killTimeout and
client.maxKillTimeout so that we don't make the mistake of using the wrong
value - as it was being given only the task.killTimeout before.
2022-07-06 15:29:38 -05:00
..
interfaces
state
taskrunner client: enforce max_kill_timeout client configuration 2022-07-06 15:29:38 -05:00
alloc_runner.go client: enforce max_kill_timeout client configuration 2022-07-06 15:29:38 -05:00
alloc_runner_hooks.go
alloc_runner_test.go client: enforce max_kill_timeout client configuration 2022-07-06 15:29:38 -05:00
alloc_runner_unix_test.go
allocdir_hook.go
cgroup_hook.go
config.go artifact: fix numerous go-getter security issues 2022-05-24 16:29:39 -04:00
consul_grpc_sock_hook.go
consul_grpc_sock_hook_test.go
consul_http_sock_hook.go
consul_http_sock_hook_test.go
csi_hook.go csi_hook: valid if any driver supports csi (#13446) 2022-06-22 10:43:43 -04:00
csi_hook_test.go csi_hook: valid if any driver supports csi (#13446) 2022-06-22 10:43:43 -04:00
groupservice_hook.go
groupservice_hook_test.go
health_hook.go
health_hook_test.go
migrate_hook.go
network_hook.go
network_hook_test.go
network_manager_linux.go
network_manager_linux_test.go
network_manager_nonlinux.go
networking.go
networking_bridge_linux.go cni: add loopback to linux bridge (#13428) 2022-06-20 11:22:53 -04:00
networking_cni.go
networking_cni_test.go
task_hook_coordinator.go alloc_runner: stop sidecar tasks last (#13055) 2022-06-07 11:35:19 -04:00
task_hook_coordinator_test.go
testing.go artifact: fix numerous go-getter security issues 2022-05-24 16:29:39 -04:00
upstream_allocs_hook.go
util.go