recording

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package recording provides utilities for recording Kubernetes events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordApplyOperationEvent added in v0.2.0

func RecordApplyOperationEvent(
	recorder events.EventRecorder, op concepts.ConvergingOperation, object client.Object, owner runtime.Object,
	messageKeyValuePairs ...string,
)

RecordApplyOperationEvent records an event for Server-Side Apply operations on a resource (object) for its owning resource (owner).

The event is recorded on the owner, with the applied object attached as the event's related object and the operation verb as its action.

  • ConvergingOperationNone: No event is recorded
  • ConvergingOperationCreated: An event of type Normal with the action "Create"
  • ConvergingOperationUpdated: An event of type Normal with the action "Update"
  • Any other operation value: An event of type Normal with the action "Unchanged"
  • messageKeyValuePairs are strings expected in the format "myKey=myValue". They are appended to the generated event message in parentheses, comma-separated, for additional information

Types

This section is empty.

Jump to

Keyboard shortcuts

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