feat(scheduler): set intervals from config (#2443)
This commit is contained in:
1 parent
d0a61b29b8
commit
5812a42ba3
7 files changed
+197
-36
No files matched your search
@@ -569,7 +569,11 @@ func TestControllerConfig(t testing.TB, ctx context.Context, tc *TestController,
|
||||
if opts.Config.Controller.Name == "" {
|
||||
require.NoError(t, opts.Config.Controller.InitNameIfEmpty())
|
||||
}
|
||||
opts.Config.Controller.SchedulerRunJobInterval = opts.SchedulerRunJobInterval
|
||||
|
||||
if opts.Config.Controller.Scheduler == nil {
|
||||
opts.Config.Controller.Scheduler = new(config.Scheduler)
|
||||
}
|
||||
opts.Config.Controller.Scheduler.JobRunIntervalDuration = opts.SchedulerRunJobInterval
|
||||
|
||||
switch {
|
||||
case opts.DisableEventing:
|
||||
|
||||
Reference in new issue
Block a user