Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 85e3652

Browse files
authored
Merge pull request #337 from mzain/fix-delete-logs
Fixed misleading delete logs. see issue #334
2 parents 74fe014 + 91a0047 commit 85e3652

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/objects/reconciler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ func (r *Reconciler) operate(ctx context.Context, log logr.Logger, act syncActio
585585
}
586586

587587
func (r *Reconciler) deleteObject(ctx context.Context, log logr.Logger, inst *unstructured.Unstructured) error {
588-
log.Info("Deleted propagated object")
588+
589589
stats.WriteObject(r.GVK)
590590
err := r.Delete(ctx, inst)
591591
if errors.IsNotFound(err) {
@@ -598,6 +598,7 @@ func (r *Reconciler) deleteObject(ctx context.Context, log logr.Logger, inst *un
598598
return err
599599
}
600600

601+
log.Info("Deleted propagated object")
601602
// Remove the propagated object from the map because we are confident that the object was successfully deleted
602603
// on the apiserver.
603604
r.recordRemovedObject(inst.GetNamespace(), inst.GetName())

0 commit comments

Comments
 (0)