diff --git a/pkg/scheduler/framework/framework.go b/pkg/scheduler/framework/framework.go index 4f959cefe..252da0b22 100644 --- a/pkg/scheduler/framework/framework.go +++ b/pkg/scheduler/framework/framework.go @@ -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 })