ECOPROJECT-4198 | feat: sizer work node size increase#1100
Conversation
As per clients requests the max recommended worker node size was increased to:4 TB RAM and 384 CPU This depends on a matching PR in the sizer project. Signed-off-by: Ami Malimovka <amalimov@redhat.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
|
/hold |
📝 WalkthroughWalkthroughThe PR increases maximum allowable CPU and memory limits for cluster sizing requests: CPU from 200 to 384 cores and memory from 512 to 4096 GB. Changes propagate across API schemas, generated types, sizing constants, and corresponding tests. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
api/v1alpha1/openapi.yaml (1)
2915-2944:⚠️ Potential issue | 🟡 MinorAdd native OpenAPI
minimumandmaximumconstraints to match existing validation tags.These request schema fields already have validation bounds defined in
x-oapi-codegen-extra-tags, but omit native OpenAPI constraints. TheworkerNodeThreadsfield in the same schema (lines 2930–2934) demonstrates the correct pattern: both native constraints and validation tags. Expose these bounds in the schema so standard OpenAPI tooling and client generators can see them:🔧 Proposed schema fix
workerNodeCPU: type: integer + minimum: 2 + maximum: 384 description: CPU cores per worker node x-oapi-codegen-extra-tags: validate: "required,min=2,max=384" workerNodeMemory: type: integer + minimum: 4 + maximum: 4096 description: Memory (GB) per worker node x-oapi-codegen-extra-tags: validate: "required,min=4,max=4096" controlPlaneCPU: type: integer + minimum: 2 + maximum: 384 description: "CPU cores per control plane node (default: 6)" x-oapi-codegen-extra-tags: validate: "omitempty,min=2,max=384" controlPlaneMemory: type: integer + minimum: 4 + maximum: 4096 description: "Memory in GB per control plane node (default: 16)" x-oapi-codegen-extra-tags: validate: "omitempty,min=4,max=4096"🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@api/v1alpha1/openapi.yaml` around lines 2915 - 2944, The schema fields workerNodeCPU, workerNodeMemory, controlPlaneCPU, and controlPlaneMemory are missing native OpenAPI numeric bounds; add appropriate "minimum" and "maximum" keys to each to match their x-oapi-codegen-extra-tags (workerNodeCPU: minimum 2, maximum 384; workerNodeMemory: minimum 4, maximum 4096; controlPlaneCPU: minimum 2, maximum 384; controlPlaneMemory: minimum 4, maximum 4096) so OpenAPI consumers see the same constraints as the validate tags while keeping the existing x-oapi-codegen-extra-tags intact.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@api/v1alpha1/openapi.yaml`:
- Around line 2915-2944: The schema fields workerNodeCPU, workerNodeMemory,
controlPlaneCPU, and controlPlaneMemory are missing native OpenAPI numeric
bounds; add appropriate "minimum" and "maximum" keys to each to match their
x-oapi-codegen-extra-tags (workerNodeCPU: minimum 2, maximum 384;
workerNodeMemory: minimum 4, maximum 4096; controlPlaneCPU: minimum 2, maximum
384; controlPlaneMemory: minimum 4, maximum 4096) so OpenAPI consumers see the
same constraints as the validate tags while keeping the existing
x-oapi-codegen-extra-tags intact.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: aaf63f57-fe67-4b06-abb5-75cfe82b1d39
📒 Files selected for processing (5)
api/v1alpha1/openapi.yamlapi/v1alpha1/spec.gen.goapi/v1alpha1/types.gen.gointernal/service/sizer.gointernal/service/sizer_test.go
|
PR needs rebase. DetailsInstructions 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 kubernetes-sigs/prow repository. |
As per clients requests the max recommended worker node size was increased to:4 TB RAM and 384 CPU
This depends on a matching PR in the sizer project.
Summary by CodeRabbit
Improvements
Tests