OSAC-496: Remove subnet/tenant fallback dead code#297
Conversation
|
@tchughesiv: This pull request references OSAC-496 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
|
Warning Review limit reached
More reviews will be available in 58 minutes and 16 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository: osac-project/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 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 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tchughesiv The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Treat empty primary subnet reference as a permanent reconciliation error and resolve VM lookup only from the subnet target namespace.
55f47a0 to
f1c8b0b
Compare
|
@coderabbitai full review |
✅ Action performedFull review finished. |
|
awaiting tenancy decisions via OSAC-1546 |
OSAC-496: Remove subnet/tenant fallback dead code (osac-operator)
Jira: https://redhat.atlassian.net/browse/OSAC-496
Companion PR: osac-project/fulfillment-service#704
Summary
Removes dead fallback paths in the ComputeInstance controller after subnet became mandatory. Empty primary subnet reference is a permanent reconciliation error. VM lookup always uses the subnet target namespace — no fallback to tenant namespace.
Changes
errSubnetRequiredsentinel;resolveSubnetTargetNamespace()errors on empty subnet refhandleUpdate()newTestComputeInstanceSpecincludes default subnet attachmentTesting
make test— passmake test-smoke— passmake lint— passAcceptance Criteria
Notes
Legacy ComputeInstances without
networkAttachments[0].subnetRefwill fail reconciliation permanently (intentional per OSAC-496).