Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Olshevski committed Jan 8, 2025
1 parent bb299e0 commit a7e8993
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/reconstitution/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ func (r *controller) populateCache(ctx context.Context, comp *apiv1.Composition,
return nil, client.IgnoreNotFound(fmt.Errorf("unable to get resource slice: %w", err))
}
slices[i] = slice

if slice.DeletionTimestamp == nil && comp.DeletionTimestamp != nil {
logger.Info("refusing to fill cache because composition is deleting but a resource slice is not")
return nil, nil
}
}

return r.Cache.fill(ctx, comp, synthesis, slices)
Expand Down

0 comments on commit a7e8993

Please sign in to comment.