-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split reconcile into prepare and reconcile #2421
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,7 +97,13 @@ func NewBase(opt Options, controllerAgentName string, images pipeline.Images) *B | |
if recorder == nil { | ||
// Create event broadcaster | ||
logger.Debug("Creating event broadcaster") | ||
eventBroadcaster := record.NewBroadcaster() | ||
|
||
correlatorOptions := record.CorrelatorOptions{ | ||
// The default burst size is 25 | ||
BurstSize: 50, | ||
QPS: 1, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this the number of queries per second that we can emit? I couldn't figure out after reading the godoc for this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the way I understood this is the QPS we allow after a burst |
||
} | ||
eventBroadcaster := record.NewBroadcasterWithCorrelatorOptions(correlatorOptions) | ||
eventBroadcaster.StartLogging(logger.Named("event-broadcaster").Infof) | ||
eventBroadcaster.StartRecordingToSink(&typedcorev1.EventSinkImpl{Interface: opt.KubeClientSet.CoreV1().Events("")}) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably fine for now but should be configurable right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'll follow up on this