-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KO-341: Added event flow for BackupService, Backup and Restore controllers #324
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should enhance event tracking by incorporating additional events, especially for the successful (happy path) scenarios. Currently, only failure and deletion events are being logged, leaving gaps in visibility for standard operations.
internal/controller/backup-service/aerospikebackupservice_controller.go
Outdated
Show resolved
Hide resolved
@@ -308,8 +330,10 @@ func (r *SingleBackupReconciler) scheduleOnDemandBackup() error { | |||
|
|||
r.Log.Info("Scheduled on-demand backup", "ID", r.aeroBackup.Spec.OnDemandBackups[0].ID, | |||
"routine", r.aeroBackup.Spec.OnDemandBackups[0].RoutineName) | |||
r.Recorder.Eventf(r.aeroBackup, corev1.EventTypeNormal, "BackupScheduled", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r.Recorder.Eventf(r.aeroBackup, corev1.EventTypeNormal, "BackupScheduled", | |
r.Recorder.Eventf(r.aeroBackup, corev1.EventTypeNormal, "OnDemandBackupScheduled", |
r.Recorder.Eventf(r.aeroBackup, corev1.EventTypeNormal, "BackupReconciled", | ||
"Reconciled scheduled backup %s/%s", r.aeroBackup.Namespace, r.aeroBackup.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r.Recorder.Eventf(r.aeroBackup, corev1.EventTypeNormal, "BackupReconciled", | |
"Reconciled scheduled backup %s/%s", r.aeroBackup.Namespace, r.aeroBackup.Name) | |
r.Recorder.Eventf(r.aeroBackup, corev1.EventTypeNormal, "BackupScheduled", | |
"Scheduled backup %s/%s", r.aeroBackup.Namespace, r.aeroBackup.Name) |
No description provided.