events

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

View Source
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.

Jump to

Keyboard shortcuts

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