eventer

package
v0.10.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventReasonInvalidRestic                 = "InvalidRestic"
	EventReasonInvalidRecovery               = "InvalidRecovery"
	EventReasonInvalidCronExpression         = "InvalidCronExpression"
	EventReasonSuccessfulCronExpressionReset = "SuccessfulCronExpressionReset"
	EventReasonSuccessfulBackup              = "SuccessfulBackup"
	EventReasonFailedToBackup                = "FailedBackup"
	EventReasonSuccessfulRecovery            = "SuccessfulRecovery"
	EventReasonFailedToRecover               = "FailedRecovery"
	EventReasonSuccessfulCheck               = "SuccessfulCheck"
	EventReasonFailedToCheck                 = "FailedCheck"
	EventReasonFailedToRetention             = "FailedRetention"
	EventReasonFailedToUpdate                = "FailedUpdateBackup"
	EventReasonFailedCronJob                 = "FailedCronJob"
	EventReasonFailedToDelete                = "FailedDelete"
	EventReasonJobCreated                    = "RecoveryJobCreated"
	EventReasonJobFailedToCreate             = "RecoveryJobFailedToCreate"
	EventReasonCheckJobCreated               = "CheckJobCreated"
	EventReasonFailedSetup                   = "SetupFailed"
	EventReasonAdmissionWebhookNotActivated  = "AdmissionWebhookNotActivated"

	// ====================== Event Sources ===================================
	EventSourceBackupConfigurationController = "BackupConfiguration Controller"
	EventSourceBackupBatchController         = "BackupBatch Controller"
	EventSourceBackupSessionController       = "BackupSession Controller"
	EventSourceRestoreSessionController      = "RestoreSession Controller"
	EventSourceWorkloadController            = "Workload Controller"
	EventSourceBackupSidecar                 = "Backup Sidecar"
	EventSourceRestoreInitContainer          = "Restore Init-Container"
	EventSourceBackupTriggeringCronJob       = "Backup Triggering CronJob"
	EventSourceStatusUpdater                 = "Status Updater"
	EventSourceAutoBackupHandler             = "Auto Backup Handler"

	// ======================= Event Reasons ========================
	// BackupConfiguration Events
	EventReasonCronJobCreationFailed   = "CronJob Creation Failed"
	EventReasonBackupJobCreationFailed = "Backup Job Creation Failed"
	// BackupSession Events
	EventReasonBackupSessionFailed    = "BackupSession Failed"
	EventReasonBackupSessionSkipped   = "BackupSession Skipped"
	EventReasonBackupSessionRunning   = "BackupSession Running"
	EventReasonBackupSessionSucceeded = "BackupSession Succeeded"
	EventReasonHostBackupSucceded     = "Host Backup Succeeded"
	EventReasonHostBackupFailed       = "Host Backup Failed"
	// RestoreSession Events
	EventReasonRestoreJobCreated        = "Restore Job Created"
	EventReasonRestoreSessionFailed     = "RestoreSession Failed"
	EventReasonRestoreSessionSucceeded  = "RestoreSession Succeeded"
	EventReasonRestorePhaseUnknown      = "RestoreSession Phase Unknown"
	EventReasonRestoreJobCreationFailed = "Restore Job Creation Failed"
	EventReasonHostRestoreSucceeded     = "Host Restore Succeeded"
	EventReasonHostRestoreFailed        = "Host Restore Failed"
	// Auto Backup Events
	EventReasonAutoBackupResourcesCreationFailed    = "Auto Backup Resources Creation Failed"
	EventReasonAutoBackupResourcesCreationSucceeded = "Auto Backup Resources Creation Succeeded"
	EventReasonAutoBackupResourcesDeletionFailed    = "Auto Backup Resources Deletion Failed"
	EventReasonAutoBackupResourcesDeletionSucceeded = "Auto Backup Resources Deletion Succeeded"
	// Sidecar Events
	EventReasonSidecarInjectionFailed               = "Sidecar Injection Failed"
	EventReasonSidecarInjectionSucceeded            = "Sidecar Injection Succeeded"
	EventReasonSidecarDeletionFailed                = "Sidecar Deletion Failed"
	EventReasonSidecarDeletionSucceeded             = "Sidecar Deletion Succeeded"
	EventReasonFailedToStartBackupSessionController = "Failed To Start BackupSession Controller"
	EventReasonBackupSessionControllerStarted       = "BackupSession Controller Started"
	// Init-container Events
	EventReasonInitContainerInjectionFailed    = "Init-Container Injection Failed"
	EventReasonInitContainerInjectionSucceeded = "Init-Container Injection Succeeded"
	EventReasonInitContainerDeletionFailed     = "Init-Container Deletion Failed"
	EventReasonInitContainerDeletionSucceeded  = "Init-Container Deletion Succeeded"

	EventReasonBackupSkipped                      = "Backup Skipped"
	EventReasonWorkloadControllerTriggeringFailed = "Failed To Trigger Workload Controller"
)

Variables

This section is empty.

Functions

func CreateEvent

func CreateEvent(client kubernetes.Interface, component string, obj runtime.Object, eventType, reason, message string) (*core.Event, error)

func CreateEventWithLog

func CreateEventWithLog(client kubernetes.Interface, component string, obj runtime.Object, eventType, reason, message string)

func NewEventRecorder

func NewEventRecorder(client kubernetes.Interface, component string) record.EventRecorder

Types

This section is empty.

Jump to

Keyboard shortcuts

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