Skip to content

Commit 89472a2

Browse files
authored
Merge pull request #493 from haarchri/feature/controller-runtime-recover
feat(controller-runtime): enable recover true option
2 parents d863679 + e147d40 commit 89472a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/controller/options.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,12 @@ type Options struct {
6565

6666
// ForControllerRuntime extracts options for controller-runtime.
6767
func (o Options) ForControllerRuntime() controller.Options {
68+
recoverPanic := true
69+
6870
return controller.Options{
6971
MaxConcurrentReconciles: o.MaxConcurrentReconciles,
7072
RateLimiter: ratelimiter.NewController(),
73+
RecoverPanic: &recoverPanic,
7174
}
7275
}
7376

0 commit comments

Comments
 (0)