From 7df2d5a3676be42883f69eca94f74a46a8d2d90b Mon Sep 17 00:00:00 2001 From: Jordan Olshevski Date: Fri, 5 Jan 2024 20:39:36 +0000 Subject: [PATCH] Fix test --- internal/reconstitution/cache.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/reconstitution/cache.go b/internal/reconstitution/cache.go index 76404b08..2d87830b 100644 --- a/internal/reconstitution/cache.go +++ b/internal/reconstitution/cache.go @@ -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)