Documentation ¶
Index ¶
- Constants
- func GetTargetNodeFailed(recorder record.EventRecorder, object runtime.Object)
- func NormalEvent(recorder record.EventRecorder, object runtime.Object, reason, message string)
- func NormalEventf(recorder record.EventRecorder, object runtime.Object, ...)
- func RemediationCannotStart(recorder record.EventRecorder, object runtime.Object, message string)
- func RemediationFinished(recorder record.EventRecorder, object runtime.Object)
- func RemediationStarted(recorder record.EventRecorder, object runtime.Object)
- func RemediationStoppedByNHC(recorder record.EventRecorder, object runtime.Object)
- func WarningEvent(recorder record.EventRecorder, object runtime.Object, reason, message string)
- func WarningEventf(recorder record.EventRecorder, object runtime.Object, ...)
Constants ¶
const ( RemediationStartedEventReason = "RemediationStarted" RemediationStoppedEventReason = "RemediationStopped" RemediationFinishedEventReason = "RemediationFinished" RemediationCannotStartEventReason = "RemediationCannotStart" )
Event message format "medik8s <operator shortname> <message>"
Variables ¶
This section is empty.
Functions ¶
func GetTargetNodeFailed ¶ added in v1.14.0
func GetTargetNodeFailed(recorder record.EventRecorder, object runtime.Object)
GetTargetNodeFailed will record a Warning event to signal that the remediation cannot start because the target Node could not be found.
func NormalEvent ¶
func NormalEvent(recorder record.EventRecorder, object runtime.Object, reason, message string)
NormalEvent will record an event with type Normal and custom message.
func NormalEventf ¶
func NormalEventf(recorder record.EventRecorder, object runtime.Object, reason, messageFmt string, a ...interface{})
NormalEventf will record an event with type Normal and formatted message.
func RemediationCannotStart ¶ added in v1.16.0
func RemediationCannotStart(recorder record.EventRecorder, object runtime.Object, message string)
RemediationCannotStart will record a Warning event to signal that the remediation cannot start. A custom message can be used to further explain the reason.
func RemediationFinished ¶
func RemediationFinished(recorder record.EventRecorder, object runtime.Object)
RemediationFinished will record a Normal event to signal that the remediation has finished.
func RemediationStarted ¶
func RemediationStarted(recorder record.EventRecorder, object runtime.Object)
RemediationStarted will record a Normal event to signal that the remediation has started.
func RemediationStoppedByNHC ¶
func RemediationStoppedByNHC(recorder record.EventRecorder, object runtime.Object)
RemediationStoppedByNHC will record a Normal event to signal that the remediation was stopped by the Node Healthcheck operator.
func WarningEvent ¶
func WarningEvent(recorder record.EventRecorder, object runtime.Object, reason, message string)
WarningEvent will record an event with type Warning and custom message.
func WarningEventf ¶
func WarningEventf(recorder record.EventRecorder, object runtime.Object, reason, messageFmt string, a ...interface{})
WarningEventf will record an event with type Warning and formatted message.
Types ¶
This section is empty.