Skip to content

Conversation

@bruelea
Copy link
Collaborator

@bruelea bruelea commented Sep 4, 2024

Before this change the reconciliation of a claim resource wasn't triggered if a change was detected in the owned resource because of the missing controller reference in the owner reference

Changes:
Use an owner reference with a reference to a controller
Remove status update which is no longer needed in ip address claim controller test
Remove unused functions from prefix claim type

@henrybear327 henrybear327 changed the title trigger reconciliation of owner if change in controlled resource is detected Trigger reconciliation of owner if change in controlled resource is detected Sep 4, 2024
henrybear327
henrybear327 previously approved these changes Sep 4, 2024
@henrybear327 henrybear327 self-requested a review September 4, 2024 16:02
@henrybear327
Copy link
Collaborator

@bruelea I think there are 2 extra SetOwnerReferences left there

@henrybear327 henrybear327 dismissed their stale review September 4, 2024 16:05

More SetOwnerReferences spotted in the code

@bruelea bruelea force-pushed the fix/reconciliation-of-owner-on-controllee-change branch from 1f55a4f to 6be8738 Compare September 5, 2024 16:07
@bruelea
Copy link
Collaborator Author

bruelea commented Sep 5, 2024

@bruelea I think there are 2 extra SetOwnerReferences left there

Good catch! I removed the unused functions and replaced the function in the controller test.

@bruelea bruelea force-pushed the fix/reconciliation-of-owner-on-controllee-change branch from 439439a to 5a72002 Compare September 6, 2024 09:28
@bruelea bruelea merged commit b54683c into main Sep 6, 2024
@henrybear327 henrybear327 deleted the fix/reconciliation-of-owner-on-controllee-change branch September 6, 2024 10:19
vaishutin pushed a commit to vaishutin/netbox-operator that referenced this pull request Aug 17, 2025
…etected (netbox-community#22)

* use owner reference with reference to controller

* remove replace remaining SetOwnerReference() calls
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