Fix stuck Machine if Prefix is referenced#1502
Conversation
…flips to `Allocated` Signed-off-by: Lukas Frank <lukas.frank@sap.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe machine controller now watches IPAM Prefix resources and enqueues reconcile requests for Machines referencing the owning NetworkInterface when a Prefix changes. A new test validates that a Machine blocked by an unallocated ephemeral prefix reconciles and creates an IRI Machine once the Prefix becomes Allocated. ChangesPrefix watch and reconciliation
Estimated code review effort: 2 (Simple) | ~15 minutes Sequence Diagram(s)sequenceDiagram
participant PrefixController
participant MachineController
participant K8sAPI
participant IRI
PrefixController->>K8sAPI: Update Prefix status to Allocated
K8sAPI-->>MachineController: Prefix update event
MachineController->>MachineController: enqueueMachinesReferencingPrefix
MachineController->>K8sAPI: List Machines by NetworkInterfaceNamesField
K8sAPI-->>MachineController: MachineList
MachineController->>MachineController: Enqueue reconcile requests
MachineController->>IRI: Create Machine with allocated IP NIC
Related Issues: Suggested labels: bug, machinepoollet Suggested reviewers: ironcore-dev/machinepoollet-maintainers 🐰 A prefix once stuck, now allocates free, 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Proposed Changes
Prefixwatch that aMachinegets triggered once its status flips toAllocatedFixes #1501
Summary by CodeRabbit
New Features
Bug Fixes