open-nomad/client/allocrunner/taskrunner
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
..
getter artifact: fix numerous go-getter security issues 2022-05-24 16:29:39 -04:00
interfaces template: trigger change_mode for dynamic secrets on restore (#9636) 2020-12-16 13:36:19 -05:00
restarts ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
state client: test logmon cleanup 2019-03-04 13:15:15 -08:00
template test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -04:00
testdata executor/linux: make chroot binary paths absolute 2019-04-01 15:45:31 -07:00
artifact_hook.go artifact: fix numerous go-getter security issues 2022-05-24 16:29:39 -04:00
artifact_hook_test.go artifact: fix numerous go-getter security issues 2022-05-24 16:29:39 -04:00
connect_native_hook.go cleanup: purge github.com/pkg/errors 2022-04-01 19:24:02 -05:00
connect_native_hook_test.go test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -04:00
device_hook.go Store device envs separately and pass to drivers 2018-12-19 14:23:09 -08:00
device_hook_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
dispatch_hook.go client/state: support upgrading from 0.8->0.9 2018-12-19 10:39:27 -08:00
dispatch_hook_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
driver_handle.go client: enforce max_kill_timeout client configuration 2022-07-06 15:29:38 -05:00
envoy_bootstrap_hook.go cleanup: purge github.com/pkg/errors 2022-04-01 19:24:02 -05:00
envoy_bootstrap_hook_test.go test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -04:00
envoy_version_hook.go cleanup: purge github.com/pkg/errors 2022-04-01 19:24:02 -05:00
envoy_version_hook_test.go cleanup: purge github.com/pkg/errors 2022-04-01 19:24:02 -05:00
errors.go client: artifact errors are retry-able 2019-02-20 07:21:27 -08:00
errors_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
lazy_handle.go executor: implement streaming stats API 2019-01-12 12:18:22 -05:00
lifecycle.go drivers: Capture exit code when task is killed (#10494) 2021-05-04 10:54:00 -04:00
logmon_hook.go address review comments 2019-12-13 11:21:00 -05:00
logmon_hook_test.go test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -04:00
logmon_hook_unix_test.go test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -04:00
plugin_supervisor_hook.go CSI: make plugin health_timeout configurable in csi_plugin stanza (#13340) 2022-06-14 10:04:16 -04:00
remotetask_hook.go client: enforce max_kill_timeout client configuration 2022-07-06 15:29:38 -05:00
script_check_hook.go client: refactor common service registration objects from Consul. 2022-03-15 09:38:30 +01:00
script_check_hook_test.go Merge branch 'main' into f-1.3-boogie-nights 2022-03-23 09:41:25 +01:00
service_hook.go client: account for service provider namespace updates in hooks. (#12479) 2022-04-06 19:26:22 +02:00
service_hook_test.go test: move remaining tests to use ci.Parallel. 2022-03-24 08:45:13 +01:00
sids_hook.go cleanup: purge github.com/pkg/errors 2022-04-01 19:24:02 -05:00
sids_hook_test.go test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -04:00
stats_hook.go tests: deflake TestTaskRunner_StatsHook_Periodic (#9734) 2021-01-06 16:03:00 -05:00
stats_hook_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
task_dir_hook.go update template and artifact interpolation to use client-relative paths 2021-01-04 22:25:34 +00:00
task_runner.go client: enforce max_kill_timeout client configuration 2022-07-06 15:29:38 -05:00
task_runner_getters.go alloc_runner: stop sidecar tasks last (#13055) 2022-06-07 11:35:19 -04:00
task_runner_hooks.go artifact: fix numerous go-getter security issues 2022-05-24 16:29:39 -04:00
task_runner_test.go artifact: fix numerous go-getter security issues 2022-05-24 16:29:39 -04:00
tasklet.go comments: cleanup some leftover debug comments and such 2020-01-31 19:04:35 -06:00
tasklet_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
template_hook.go client: add Nomad template service functionality to runner. (#12458) 2022-04-06 19:17:05 +02:00
validate_hook.go improve error message on service length (#12012) 2022-02-04 19:39:34 -05:00
validate_hook_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
vault_hook.go Merge pull request #11402 from hashicorp/document-client-initial-vault-renew 2022-01-13 16:21:58 +01:00
vault_hook_test.go client: support graceful shutdowns 2018-11-19 16:39:30 -08:00
volume_hook.go volumes: return better error messages for unsupported task drivers (#8030) 2020-05-21 09:18:02 -04:00
volume_hook_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00