Simplify worker auth rotation timing logic (#3237)
* Simplify worker auth rotation timing logic * Add some jitter
This commit is contained in:
1 parent
6f4f51cc9f
commit
e0787f4de0
4 files changed
+66
-36
No files matched your search
@@ -473,6 +473,9 @@ type TestControllerOpts struct {
|
||||
// The amount of time between the scheduler waking up to run it's registered
|
||||
// jobs.
|
||||
SchedulerRunJobInterval time.Duration
|
||||
|
||||
// The time to use for CA certificate lifetime for worker auth
|
||||
WorkerAuthCaCertificateLifetime time.Duration
|
||||
}
|
||||
|
||||
func NewTestController(t testing.TB, opts *TestControllerOpts) *TestController {
|
||||
@@ -774,6 +777,7 @@ func TestControllerConfig(t testing.TB, ctx context.Context, tc *TestController,
|
||||
RawConfig: opts.Config,
|
||||
Server: tc.b,
|
||||
DisableAuthorizationFailures: opts.DisableAuthorizationFailures,
|
||||
TestOverrideWorkerAuthCaCertificateLifetime: opts.WorkerAuthCaCertificateLifetime,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user