Skip to content

Commit

Permalink
Merge pull request #403 from Santosh1176/fix-2952/nc
Browse files Browse the repository at this point in the history
Enables RecoverPanic option on reconcilers
  • Loading branch information
stefanprodan authored Aug 12, 2022
2 parents 4676f8b + e52e25a commit cef6398
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions controllers/alert_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (r *AlertReconciler) SetupWithManagerAndOptions(mgr ctrl.Manager, opts Aler
WithOptions(controller.Options{
MaxConcurrentReconciles: opts.MaxConcurrentReconciles,
RateLimiter: opts.RateLimiter,
RecoverPanic: true,
}).
Complete(r)
}
Expand Down
1 change: 1 addition & 0 deletions controllers/provider_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func (r *ProviderReconciler) SetupWithManagerAndOptions(mgr ctrl.Manager, opts P
WithOptions(controller.Options{
MaxConcurrentReconciles: opts.MaxConcurrentReconciles,
RateLimiter: opts.RateLimiter,
RecoverPanic: true,
}).
Complete(r)
}
Expand Down
1 change: 1 addition & 0 deletions controllers/receiver_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func (r *ReceiverReconciler) SetupWithManagerAndOptions(mgr ctrl.Manager, opts R
WithOptions(controller.Options{
MaxConcurrentReconciles: opts.MaxConcurrentReconciles,
RateLimiter: opts.RateLimiter,
RecoverPanic: true,
}).
Complete(r)
}
Expand Down

0 comments on commit cef6398

Please sign in to comment.