Skip to content

Commit

Permalink
fix retry logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvindthiru committed Oct 22, 2024
1 parent 09b25f7 commit 3b97bea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/scheduler/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,10 @@ func (f *framework) removeFinalizer(ctx context.Context, bindings []*placementv1
// We will retry on conflicts.
if apierrors.IsConflict(err) {
// get the binding again to make sure we have the latest version to update again.
return f.client.Get(cctx, client.ObjectKeyFromObject(deletingBinding), deletingBinding)
getErr := f.client.Get(cctx, client.ObjectKeyFromObject(deletingBinding), deletingBinding)
if getErr != nil {
return getErr
}
}
return err
})
Expand Down

0 comments on commit 3b97bea

Please sign in to comment.