Skip to content

Commit

Permalink
chore: add logging within the retry loop
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Riegler <[email protected]>
  • Loading branch information
xvzf committed Oct 21, 2024
1 parent 85d3978 commit dce4f17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/flagdproxy/flagdproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dce4f17

Please sign in to comment.