Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Olshevski committed Jan 5, 2024
1 parent 8bee479 commit 7df2d5a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/reconstitution/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ func (c *cache) Fill(ctx context.Context, comp *apiv1.Composition, synthesis *ap
defer c.mut.Unlock()

synKey := synthesisKey{Composition: compNSN, Generation: getCompositionGeneration(comp, synthesis)}
if comp.DeletionTimestamp != nil {
// We increment the generation when the composition is deleted to invalidate the previous cache.
// This is safe because the generation naturally won't progress after deletion anyway.
synKey.Generation++
}
c.resources[synKey] = resources
c.synthesesByComposition[compNSN] = append(c.synthesesByComposition[compNSN], synKey.Generation)

Expand Down

0 comments on commit 7df2d5a

Please sign in to comment.