Skip to content

Commit

Permalink
increase event burst size (#3115)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Aug 7, 2023
1 parent c8031f6 commit b5b25ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/controller.go
Expand Up @@ -249,7 +249,7 @@ type Controller struct {
func Run(ctx context.Context, config *Configuration) {
utilruntime.Must(kubeovnv1.AddToScheme(scheme.Scheme))
klog.V(4).Info("Creating event broadcaster")
eventBroadcaster := record.NewBroadcaster()
eventBroadcaster := record.NewBroadcasterWithCorrelatorOptions(record.CorrelatorOptions{BurstSize: 100})
eventBroadcaster.StartLogging(klog.Infof)
eventBroadcaster.StartRecordingToSink(&typedcorev1.EventSinkImpl{Interface: config.KubeFactoryClient.CoreV1().Events("")})
recorder := eventBroadcaster.NewRecorder(scheme.Scheme, corev1.EventSource{Component: controllerAgentName})
Expand Down

0 comments on commit b5b25ff

Please sign in to comment.