diff --git a/pkg/operator/operator.go b/pkg/operator/operator.go index 7a03d79db..a90819dfa 100644 --- a/pkg/operator/operator.go +++ b/pkg/operator/operator.go @@ -371,10 +371,8 @@ func Start(ctx context.Context, buildInfo trivyoperator.BuildInfo, operatorConfi } } - ctxWithTimeout, cancel := context.WithTimeout(ctx, *operatorConfig.ControllerCacheSyncTimeout) - defer cancel() setupLog.Info("Starting controllers manager") - if err := mgr.Start(ctxWithTimeout); err != nil { + if err := mgr.Start(ctx); err != nil { return fmt.Errorf("starting controllers manager: %w", err) }