open-nomad/client/allocrunner/taskrunner
Tim Gross 1785822386
template: trigger change_mode for dynamic secrets on restore (#9636)
When a task is restored after a client restart, the template runner will
create a new lease for any dynamic secret (ex. Consul or PKI secrets
engines). But because this lease is being created in the prestart hook, we
don't trigger the `change_mode`.

This changeset uses the the existence of the task handle to detect a
previously running task that's been restored, so that we can trigger the
template `change_mode` if the template is changed, as it will be only with
dynamic secrets.
2020-12-16 13:36:19 -05:00
..
getter jobspec: add support for headers in artifact stanza 2020-11-13 12:03:54 -06:00
interfaces template: trigger change_mode for dynamic secrets on restore (#9636) 2020-12-16 13:36:19 -05:00
restarts lifecycle: add poststop hook (#8194) 2020-11-12 08:01:42 -08:00
state
template template: trigger change_mode for dynamic secrets on restore (#9636) 2020-12-16 13:36:19 -05:00
testdata
artifact_hook.go
artifact_hook_test.go
connect_native_hook.go consul/connect: add support for bridge networks with connect native tasks 2020-07-29 09:26:01 -05:00
connect_native_hook_test.go consul/connect: fixup tests to use new consul sdk 2020-08-24 12:02:41 -05:00
device_hook.go
device_hook_test.go
dispatch_hook.go
dispatch_hook_test.go
driver_handle.go
envoy_bootstrap_hook.go consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
envoy_bootstrap_hook_test.go consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
envoy_version_hook.go consul/connect: fix regression where client connect images ignored 2020-12-14 09:47:55 -06:00
envoy_version_hook_test.go consul/connect: fix regression where client connect images ignored 2020-12-14 09:47:55 -06:00
errors.go
errors_test.go
lazy_handle.go
lifecycle.go template: trigger change_mode for dynamic secrets on restore (#9636) 2020-12-16 13:36:19 -05:00
logmon_hook.go
logmon_hook_test.go
logmon_hook_unix_test.go
plugin_supervisor_hook.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
script_check_hook.go consul: fix validation of task in group-level script-checks 2020-09-28 15:02:59 -05:00
script_check_hook_test.go consul: fix validation of task in group-level script-checks 2020-09-28 15:02:59 -05:00
service_hook.go Consul with CNI and host_network addresses (#9095) 2020-10-15 15:32:21 -04:00
service_hook_test.go tr/service_hook: reset initialized flag during deregister 2020-04-06 16:05:36 -04:00
sids_hook.go client: PR cleanup - improved logging around kill task in SIDS hook 2020-01-31 19:05:23 -06:00
sids_hook_test.go tests: set consul token for nomad client for testing SIDS TR hook 2020-01-31 19:06:15 -06:00
stats_hook.go Apply some suggested fixes from staticcheck (#9598) 2020-12-10 07:29:18 -08:00
stats_hook_test.go
task_dir_hook.go s/0.13/1.0/g 2020-10-14 15:17:47 -07:00
task_runner.go lifecycle: add poststop hook (#8194) 2020-11-12 08:01:42 -08:00
task_runner_getters.go lifecycle: add poststop hook (#8194) 2020-11-12 08:01:42 -08:00
task_runner_hooks.go lifecycle: add poststop hook (#8194) 2020-11-12 08:01:42 -08:00
task_runner_test.go tests: restart restartpolicy for all tasks in tests 2020-03-24 21:52:48 -04:00
tasklet.go comments: cleanup some leftover debug comments and such 2020-01-31 19:04:35 -06:00
tasklet_test.go
template_hook.go oss compoments for multi-vault namespaces 2020-07-24 10:14:59 -04:00
validate_hook.go s/0.13/1.0/g 2020-10-14 15:17:47 -07:00
validate_hook_test.go
vault_hook.go
vault_hook_test.go
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 volumes: return better error messages for unsupported task drivers (#8030) 2020-05-21 09:18:02 -04:00