From dce4f1748d967a30a0da57bade985a8e9b21f5e7 Mon Sep 17 00:00:00 2001 From: Matthias Riegler Date: Mon, 21 Oct 2024 10:18:35 +0200 Subject: [PATCH] chore: add logging within the retry loop Signed-off-by: Matthias Riegler --- common/flagdproxy/flagdproxy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/flagdproxy/flagdproxy.go b/common/flagdproxy/flagdproxy.go index 6850bb60c..5077fde93 100644 --- a/common/flagdproxy/flagdproxy.go +++ b/common/flagdproxy/flagdproxy.go @@ -102,6 +102,7 @@ func (f *FlagdProxyHandler) ensureFlagdProxyResource(ctx context.Context, obj cl return retry.RetryOnConflict(retry.DefaultRetry, func() error { var old = obj.DeepCopyObject().(client.Object) + f.Log.Info("Ensuring object exists", "name", obj.GetName(), "namespace", obj.GetNamespace()) // Try to get the existing object err := f.Client.Get(ctx, client.ObjectKey{Name: old.GetName(), Namespace: old.GetNamespace()}, old)