feat(scheduler): set intervals from config (#2443)

This commit is contained in:
Louis Ruch authored and GitHub committed 2022-09-13 10:01:49 -07:00
1 parent d0a61b29b8
commit 5812a42ba3
7 files changed
+197 -36

No files matched your search

+5 -1
View File
@@ -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: