update later in file is Status only, add this back here with no return
@@ -104,6 +104,10 @@ func (r *AsyncReconciler) Reconcile(req ctrl.Request, local runtime.Object) (res
if pAccessor, err := meta.Accessor(p.Target); err == nil {
if err := controllerutil.SetControllerReference(pAccessor, res, r.Scheme); err == nil {
r.Telemetry.LogInfo("status", "setting parent reference to object: "+pAccessor.GetName())
+ err := r.Update(ctx, local)
+ if err != nil {
+ r.Telemetry.LogInfo("warning", "failed to update instance: "+err.Error())
+ }
break
}
}
