Update lease renewer logic (#4090)

* Add grace period calculation logic to renewer

* Update lease renewer logic.

It is believed by myself and members of the Nomad team that this logic
should be much more robust in terms of causing large numbers of new
secret acquisitions caused by a static grace period. See comments in the
code for details.

Fixes #3414

* Fix some commenting and fix tests

* Add more time to test so that integ tests don't time out

* Fix some review feedback
This commit is contained in:
Jeff Mitchell
2018-03-19 15:48:24 -04:00
committed by GitHub
parent 53b0e5971d
commit 9ca558c303
3 changed files with 95 additions and 37 deletions

View File

@@ -41,7 +41,6 @@ func TestRenewer_NewRenewer(t *testing.T) {
},
&Renewer{
secret: &Secret{},
grace: DefaultRenewerGrace,
},
false,
},