Documentation ¶
Index ¶
- Constants
- func CreateEvent(client kubernetes.Interface, component string, obj runtime.Object, ...) (*core.Event, error)
- func CreateEventWithLog(client kubernetes.Interface, component string, obj runtime.Object, ...)
- func NewEventRecorder(client kubernetes.Interface, component string) record.EventRecorder
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 CreateEventWithLog ¶
func NewEventRecorder ¶
func NewEventRecorder(client kubernetes.Interface, component string) record.EventRecorder
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.