Service autoscaling on both ram and cpu supported#474
Conversation
WalkthroughAdds a new BOTH option to autoscaling.scaling_on in deployment and statefulset facets. Updates UI visibility/validation so cpu_threshold shows for CPU/BOTH and ram_threshold shows for RAM/BOTH. No other fields or logic are changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant User
participant UI
participant FacetSchema as Facet Schema
User->>UI: Select scaling_on (CPU | RAM | BOTH)
UI->>FacetSchema: Validate visibility rules
alt scaling_on == CPU or BOTH
UI->>User: Show cpu_threshold input
end
alt scaling_on == RAM or BOTH
UI->>User: Show ram_threshold input
end
note over UI,FacetSchema: BOTH enables both threshold inputs
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
🔇 Additional comments (5)
✨ Finishing Touches🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
Related issues
Type of change
Checklist
developbranchTesting
Reviewer instructions
Summary by CodeRabbit