Skip to content

Commit

Permalink
fix: remove controller manager timeout (#1980)
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <hen.keinan@gmail.com>
  • Loading branch information
chen-keinan authored Apr 4, 2024
1 parent ba5235c commit a14724d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit a14724d

Please sign in to comment.