HYPERFLEET-1202 - feat: add subnets field to ClusterPlatform model#11
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (7)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
✅ Files skipped from review due to trivial changes (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughSummary by CodeRabbit
WalkthroughChanges
Estimated code review effort: 2 (Simple) | ~10 minutes Security Notes
🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
Add SubnetSpec model and optional subnets array to ClusterPlatform to support subnet configuration in cluster platform spec. Required by E2E tests that validate Maestro Go template rendering of subnet data in ManifestWork ConfigMaps.
effba5f to
c414e68
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@models/cluster/model.tsp`:
- Around line 14-19: The SubnetSpec model currently accepts unchecked cidr and
role strings, so add schema-level validation in SubnetSpec to constrain cidr to
valid CIDR notation and replace role with a closed enum like the other typed
fields in this schema. Update the SubnetSpec definition so invalid subnet data
is rejected at the boundary before it reaches Maestro template rendering, and
keep the fix localized to the SubnetSpec type and any related role definitions
it references.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Central YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 558bd5eb-273b-4ee5-83e5-d86446a25be8
📒 Files selected for processing (5)
CHANGELOG.mdmain.tspmodels/cluster/model.tspschemas/template/openapi.yamlschemas/template/swagger.yaml
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
openshift-hyperfleet/architecture(manual)openshift-hyperfleet/hyperfleet-api(manual)openshift-hyperfleet/hyperfleet-sentinel(manual)openshift-hyperfleet/hyperfleet-adapter(manual)openshift-hyperfleet/hyperfleet-broker(manual)
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ma-hill The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
eea18da
into
openshift-hyperfleet:main
Summary
SubnetSpecmodel withid,name,cidr,rolefieldssubnetsarray toClusterPlatform{{ range .subnets }}in ManifestWork ConfigMapsTest plan