Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelawyu committed Jul 10, 2023
1 parent 45c1b78 commit af1f0ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ func (s *Scheduler) cleanUpAllBindingsFor(ctx context.Context, crp *fleetv1beta1
// Also note that for deleted CRPs, derived bindings are deleted right away by the scheduler;
// the scheduler no longer marks them as deleting and waits for another controller to actually
// run the deletion.
for _, binding := range bindingList.Items {
for idx := range bindingList.Items {
binding := bindingList.Items[idx]
// Delete the binding if it has not been marked for deletion yet.
if binding.DeletionTimestamp == nil {
if err := s.client.Delete(ctx, &binding); err != nil {
Expand Down

0 comments on commit af1f0ae

Please sign in to comment.