Skip to content

Commit c222114

Browse files
committed
more informative events
1 parent 71ce94d commit c222114

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/controller/migration_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ func (r *MigrationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
104104
if hasSucceeded(existingJob) {
105105
if jobsAreEqual {
106106
logger.Info("Migration succeeded")
107-
r.GetRecorder().Event(migration, corev1.EventTypeNormal, "Succeeded", fmt.Sprintf("Migration Succeeded: %s", req.NamespacedName))
107+
r.GetRecorder().Event(migration, corev1.EventTypeNormal, "Succeeded",
108+
fmt.Sprintf("Migration Succeeded: %s, source: %s", req.NamespacedName, migration.Spec.MigrationSource.ImageRef))
108109
return r.ManageSuccess(ctx, migration)
109110
} else { // migration has changed - submit new job
110111
return r.submitMigrationJob(ctx, migration, newJob)

0 commit comments

Comments
 (0)