Skip to content

Commit

Permalink
Add note about HasSynthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
jveski committed Nov 7, 2023
1 parent 3bbe5db commit 52029de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/reconstitution/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ func (c *cache) Get(ctx context.Context, ref *ResourceRef, gen int64) (*Resource
return res, ok
}

// HasSynthesis returns true when the cache contains the resulting resources of the given synthesis.
// This should be called before Fill to determine if filling is necessary.
func (c *cache) HasSynthesis(ctx context.Context, comp types.NamespacedName, synthesis *apiv1.Synthesis) bool {
key := synthesisKey{
Composition: comp,
Expand Down

0 comments on commit 52029de

Please sign in to comment.