Skip to content

Commit a242bda

Browse files
committed
helmrepo: Remove migration log event
This will be logged/event emitted forever once in the lifecycle of HelmRepository OCI object because all new objects have to remove the .status.observedGeneration which is set to -1 by the API defaulting. Better to perform the object conversion internally without any log or event. Signed-off-by: Sunny <[email protected]>
1 parent 82b1381 commit a242bda

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

internal/controller/helmrepository_controller.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,5 @@ func (r *HelmRepositoryReconciler) migrationToStatic(ctx context.Context, sp *pa
727727
return ctrl.Result{}, err
728728
}
729729

730-
r.eventLogf(ctx, obj, eventv1.EventTypeTrace, "Migration",
731-
"removed artifact and finalizer to migrate to static HelmRepository of type OCI")
732730
return ctrl.Result{}, nil
733731
}

0 commit comments

Comments
 (0)