Documentation
¶
Overview ¶
Package eventemitter publishes Kubernetes Events for rendered configuration, deployment failures, and rejected watched inputs. Only the leader emits.
Index ¶
Constants ¶
const ( // ComponentName is the unique identifier for this component. ComponentName = "event-emitter" // EventBufferSize is the size of the event subscription buffer. EventBufferSize = busevents.StandardSubscriberBuffer )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
Component forwards controller notifications to Kubernetes Events.
func New ¶
New creates the event emitter. It subscribes during construction (before EventBus.Start()) via the shared component.Base scaffold.
func (*Component) HandleEvent ¶
HandleEvent implements component.EventHandler.
func (*Component) Start ¶
Start runs the embedded component.Base event loop. The broadcaster/recorder are built lazily on the first BecameLeaderEvent (ensureRecorder), so a replica that is only ever a follower never spawns a broadcaster goroutine or an API-server Event sink connection — only the leader (which actually emits) pays for them.