Skip to content

apiextensions/definition: fix leak of watch on composition revisions due to wrong referenced cache#5463

Closed
sttts wants to merge 3 commits intocrossplane:masterfrom
sttts:sttts-realtime-compositions-wrong-cache
Closed

apiextensions/definition: fix leak of watch on composition revisions due to wrong referenced cache#5463
sttts wants to merge 3 commits intocrossplane:masterfrom
sttts:sttts-realtime-compositions-wrong-cache

Conversation

@sttts
Copy link
Copy Markdown
Contributor

@sttts sttts commented Mar 8, 2024

Description of your changes

This PR changes the triggering cache for CompositionRevisions to xrCache, i.e. the informer watching CompositionRevisions as long as the XR controller is running. Before this PR both life-cycles did not match and a trigger is never removing its event handler. Hence, this was leaking event handlers on the global manager cache.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • [ ] Added or updated unit tests.
  • [ ] Added or updated e2e tests.
  • [ ] Linked a PR or a docs tracking issue to document this change.
  • [ ] Added backport release-x.y labels to auto-backport this PR.

Need help with this checklist? See the cheat sheet.

sttts added 3 commits March 8, 2024 23:54
…due to wrong referenced cache

Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@upbound.io>
…iggering composite reconciles

Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@upbound.io>
This reverts commit 53b143f.

Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@upbound.io>
@sttts sttts requested review from a team and negz as code owners March 8, 2024 23:09
@sttts sttts requested a review from bobh66 March 8, 2024 23:09
@sttts sttts marked this pull request as draft March 9, 2024 13:56
@jbw976
Copy link
Copy Markdown
Member

jbw976 commented Apr 23, 2024

Same on this PR as with #5468 @sttts - if it's possible to make progress on this in v1.16 that would be good, but if not that's OK too 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants