Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed

Conversation

sttts
Copy link
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.

…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 negz and a team 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
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.

None yet

2 participants