Skip to content

Conversation

@jstudler
Copy link
Collaborator

A gap discovered in the backup and restore test was that the NetBox Operator child resources do not get the ownerReference set on Update. The goal of this PR is to make sure the IpAddressClaim, PrefixClaim and IpRangeClaim controllers add the ownerReference to the IpAddress, Prefix and IpRange CR when it reconciles/updates them.

@jstudler jstudler self-assigned this Jul 14, 2025
@bruelea bruelea self-requested a review July 14, 2025 16:55
Copy link
Collaborator

@bruelea bruelea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed a bug in the test. Otherwise the code looks good :)

…etbox_v1_prefix_1.yaml


Fix netboxOperatorRestorationHash

Co-authored-by: bruelea <166021996+bruelea@users.noreply.github.com>
@jstudler jstudler requested a review from bruelea July 14, 2025 17:38
@jstudler jstudler merged commit 6b7ea08 into main Jul 15, 2025
12 checks passed
@jstudler jstudler deleted the feature/add-ownerreference-to-child-resource-on-update branch July 15, 2025 06:14
vaishutin pushed a commit to vaishutin/netbox-operator that referenced this pull request Aug 17, 2025
A gap discovered in a backup and restore test was that the NetBox Operator child resources do not get the ownerReference set on Update. The goal of this PR is to make sure the IpAddressClaim, PrefixClaim and IpRangeClaim controllers add the ownerReference to the IpAddress, Prefix and IpRange CR when it reconciles/updates them.
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