Skip to content

Commit

Permalink
feat: add basic status management
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Oct 15, 2024
1 parent e0ac99e commit 102f3ec
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions controllers/components/base_reconciler_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,17 @@ func (r *ComponentReconciler[T]) Reconcile(ctx context.Context, req ctrl.Request
}
}

// update status
err := r.Client.ApplyStatus(
ctx,
rr.Instance,
client.FieldOwner(rr.Instance.GetName()),
client.ForceOwnership,
)

if err != nil {
return ctrl.Result{}, err
}

return ctrl.Result{}, nil
}

0 comments on commit 102f3ec

Please sign in to comment.