Skip to content

Commit

Permalink
Merge pull request #493 from haarchri/feature/controller-runtime-recover
Browse files Browse the repository at this point in the history
feat(controller-runtime): enable recover true option
  • Loading branch information
phisco authored Aug 4, 2023
2 parents d863679 + e147d40 commit 89472a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@ type Options struct {

// ForControllerRuntime extracts options for controller-runtime.
func (o Options) ForControllerRuntime() controller.Options {
recoverPanic := true

return controller.Options{
MaxConcurrentReconciles: o.MaxConcurrentReconciles,
RateLimiter: ratelimiter.NewController(),
RecoverPanic: &recoverPanic,
}
}

Expand Down

0 comments on commit 89472a2

Please sign in to comment.