open-nomad/client/allocrunner/taskrunner/interfaces
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
..
events.go allocrunnerv2 -> allocrunner 2018-10-16 16:56:56 -07:00
handle.go tr: remove unused DriverHandle interface 2018-10-16 16:56:56 -07:00
lifecycle.go template: trigger change_mode for dynamic secrets on restore (#9636) 2020-12-16 13:36:19 -05:00