Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRecorder ¶
func NewRecorder( ctx context.Context, scheme *runtime.Scheme, client libClient.Client, name string, ) record.EventRecorder
NewRecorder returns a new record.EventRecorder that records all events without aggregation, even the given event is correlated.
NOTE: This recorder must be used with caution as it creates a new Event on every event without throttling / spam filtering features - which are included in the event recorder from k8s.io/client-go. This could lead to performance issues with the Kubernetes API server.
func NewRecorderWithShutdown ¶ added in v1.10.0
func NewRecorderWithShutdown( ctx context.Context, scheme *runtime.Scheme, client libClient.Client, name string, ) (record.EventRecorder, func())
NewRecorderWithShutdown is like NewRecorder but returns a shutdown function that drains the internal event broadcaster queue. The caller can use the returned function during graceful termination to ensure queued events are delivered before the process exits.
Types ¶
This section is empty.