event

package
v0.0.0-...-ec8378c Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAbnormalEventsForResource

func GetAbnormalEventsForResource(client client.Client,
	resourceNsName types.NamespacedName, resourceUID types.UID) ([]corev1.Event, error)

GetAbnormalEventsForResource gets unique events of non-normal type for a namespaced resource. Useful for logging the most relevant events related to a resource we're waiting on. Make sure to pass in the kind exactly as it is capitalized on the event, e.g. "Pod"

func LogAbnormalEventsForResource

func LogAbnormalEventsForResource(
	client client.Client, log logr.Logger, message string,
	resourceNsName types.NamespacedName, resourceUID types.UID, resourceKind string)

LogAbnormalEventsForResource logs unique events of non-normal type for a namespaced resource. Useful for logging the most relevant events related to a resource we're waiting on. The message logged will match what is provided in 'message'

Types

This section is empty.

Jump to

Keyboard shortcuts

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