event

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL