Skip to content

Track colliding child resources that are not owned#569

Merged
scothis merged 1 commit intoreconcilerio:mainfrom
scothis:track-already-existing
Jan 3, 2025
Merged

Track colliding child resources that are not owned#569
scothis merged 1 commit intoreconcilerio:mainfrom
scothis:track-already-existing

Conversation

@scothis
Copy link
Member

@scothis scothis commented Jan 3, 2025

When creating a child resource with a fixed name, it's possible there already exists a resource with the same name that blocks the creation of the new resource. If this resource isn't owned by our resource (and owner relationships are utilized) that creates a blind spot where changes to that resource will not trigger a new reconcile.

We now track resources in this very specific case. When the target child resource is deleted the parent resource will now be reconciled.

When creating a child resource with a fixed name, it's possible there is
already a resource with the same that that will block the creation of
the new resource. If this resource isn't owned by our resource and owner
relationship are utilized that creates a blind spot where changes to
that resource will not trigger a new reconcile.

We now track resources in this very specific case. When the target
child resource is deleted the parent resource will now be reconciled.

Signed-off-by: Scott Andrews <scott@andrews.me>
@scothis scothis requested a review from mamachanko January 3, 2025 04:27
@codecov
Copy link

codecov bot commented Jan 3, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 58.25%. Comparing base (3c30843) to head (ef25bf6).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
reconcilers/child.go 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #569      +/-   ##
==========================================
+ Coverage   58.22%   58.25%   +0.02%     
==========================================
  Files          33       33              
  Lines        3782     3787       +5     
==========================================
+ Hits         2202     2206       +4     
- Misses       1486     1487       +1     
  Partials       94       94              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@scothis scothis merged commit fedae2e into reconcilerio:main Jan 3, 2025
@scothis scothis deleted the track-already-existing branch January 3, 2025 19:18
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