Skip to content

Commit 10768b4

Browse files
authored
Added two debugging log messages in reconciler (#155)
Signed-off-by: Moritz Clasmeier <[email protected]>
1 parent 6066383 commit 10768b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/reconciler/reconciler.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,11 +504,13 @@ func WithSelector(s metav1.LabelSelector) Option {
504504
// - Irreconcilable - an error occurred during reconciliation
505505
func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error) {
506506
log := r.log.WithValues(strings.ToLower(r.gvk.Kind), req.NamespacedName)
507+
log.V(1).Info("Reconciliation triggered")
507508

508509
obj := &unstructured.Unstructured{}
509510
obj.SetGroupVersionKind(*r.gvk)
510511
err = r.client.Get(ctx, req.NamespacedName, obj)
511512
if apierrors.IsNotFound(err) {
513+
log.V(1).Info("Resource %s/%s not found, nothing to do", req.NamespacedName.Namespace, req.NamespacedName.Name)
512514
return ctrl.Result{}, nil
513515
}
514516
if err != nil {

0 commit comments

Comments
 (0)