Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Events UpdatingRack string = "UpdatingRack" StoppingDatacenter string = "StoppingDatacenter" DeletingStuckPod string = "DeletingStuckPod" RestartingCassandra string = "RestartingCassandra" CreatedResource string = "CreatedResource" StartedCassandra string = "StartedCassandra" LabeledPodAsSeed string = "LabeledPodAsSeed" LabeledPodAsDecommissioning string = "LabeledPodAsDecommissioning" DeletedPvc string = "DeletedPvc" ResizingPVC string = "ResizingPVC" ResizingPVCFailed string = "ResizingPVCFailed" UnlabeledPodAsSeed string = "UnlabeledPodAsSeed" LabeledRackResource string = "LabeledRackResource" ScalingUpRack string = "ScalingUpRack" ScalingDownRack string = "ScalingDownRack" CreatedSuperuser string = "CreatedSuperuser" // deprecated CreatedUsers string = "CreatedUsers" FinishedReplaceNode string = "FinishedReplaceNode" ReplacingNode string = "ReplacingNode" StartingCassandraAndReplacingNode string = "StartingCassandraAndReplacingNode" StartingCassandra string = "StartingCassandra" DecommissionDatacenter string = "DecommissionDatacenter" DecommissioningNode string = "DecommissioningNode" UnhealthyDatacenter string = "UnhealthyDatacenter" RecreatingStatefulSet string = "RecreatingStatefulSet" InvalidDatacenterSpec string = "InvalidDatacenterSpec" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingEventRecorder ¶
type LoggingEventRecorder struct {
record.EventRecorder
record.EventRecorderLogger
ReqLogger logr.Logger
}
func NewLoggingEventRecorder ¶ added in v1.31.0
func NewLoggingEventRecorder(recorder record.EventRecorder, reqLogger logr.Logger) *LoggingEventRecorder
func (*LoggingEventRecorder) Event ¶
func (r *LoggingEventRecorder) Event(object runtime.Object, eventtype, action, reason string)
Event is a simplified version of Eventf with no support for related or note. Action is machine readable from this file and reason has ability to use args. This is for backwards compatibility
func (*LoggingEventRecorder) Eventf ¶
func (r *LoggingEventRecorder) Eventf(object runtime.Object, related runtime.Object, eventtype, reason, action, note string, args ...any)
Eventf wraps event recording with the request logger when the underlying recorder supports it. Few notes for caller: action is a constant from this file and is machine readable. reason and note are human readable. Reason is short and note can include longer description with arguments
Click to show internal directories.
Click to hide internal directories.