Skip to content

Commit e147d40

Browse files
committed
feat(controller-runtime): add recover true option
Signed-off-by: Christopher Haar <[email protected]>
1 parent 8bdf48f commit e147d40

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)