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 <darkowlzz@protonmail.com>
This commit is contained in:
parent
82b1381110
commit
a242bdabed
|
@ -727,7 +727,5 @@ func (r *HelmRepositoryReconciler) migrationToStatic(ctx context.Context, sp *pa
|
|||
return ctrl.Result{}, err
|
||||
}
|
||||
|
||||
r.eventLogf(ctx, obj, eventv1.EventTypeTrace, "Migration",
|
||||
"removed artifact and finalizer to migrate to static HelmRepository of type OCI")
|
||||
return ctrl.Result{}, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue