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.
Click to show internal directories.
Click to hide internal directories.