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

feat: cleanup target #149

Merged
merged 16 commits into from
Jul 3, 2024
Merged

feat: cleanup target #149

merged 16 commits into from
Jul 3, 2024

Conversation

zach-robinson-dev
Copy link
Contributor

Implements finalizer to logic to ensure deletion of target resources when a ResourceSync is deleted as described here. Also adds ResourceSync as an owner reference to local targets as described here. I tried to create some create some white-box style unit tests, but it ended up being too complex to be worthwhile. Integration tests run against a kind cluster would be a lot simpler and more practical, so I have created an issue for this to be implemented at some point, but I figured this should be safe to merge before that since the controller code is still relatively simple and I have tested it manually in my local environment. I ended up doing some reorganizing and minor refactoring to get this all to work and to make things more readable, but unfortunately that will make the PR a bit large and difficult to review even though a lot of it is just moving code that already exists around to different places.

@zach-robinson-dev zach-robinson-dev marked this pull request as ready for review July 2, 2024 17:20
@zach-robinson-dev zach-robinson-dev requested a review from a team July 2, 2024 17:20
@zach-robinson-dev zach-robinson-dev merged commit 4ca2551 into main Jul 3, 2024
2 checks passed
@zach-robinson-dev zach-robinson-dev deleted the feat/cleanup_target branch July 3, 2024 15:41
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.

3 participants