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