feat(common/resources)!: drop cpu limits by default#1987
Conversation
Summary of ChangesHello @cwrau, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines how resource requests and limits are handled within Helm charts, specifically by altering the default behavior for CPU limits. The primary goal is to improve application stability by not imposing CPU limits by default, while still providing an option to enable them. Additionally, an obsolete helper function has been cleaned up. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughA Helm chart template file is refactored to consolidate resource preset handling. The dedicated Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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.
Code Review
This pull request introduces a breaking change by removing the common.resourcesWithPreset template function and modifying the common.resources template to drop CPU limits from resource presets by default. A new setCPULimits flag is introduced to re-enable them. While the logic for dropping CPU limits is sound, I've found a critical issue in the implementation where the merge order of resources is incorrect, causing preset values to override user-provided values. This needs to be fixed to ensure user configurations are respected.
There was a problem hiding this comment.
Pull request overview
Updates the shared Helm library resources helper to stop setting CPU limits by default when using resource presets, aligning with the intent to avoid CPU throttling issues unless explicitly opted into.
Changes:
- Adjust
common.resourcesto remove preset CPU limits unlesssetCPULimitsis enabled. - Remove the unused
common.resourcesWithPresethelper template. - Update the template doc comment to describe the new default behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
75ee153 to
5a1f2e1
Compare
chore!: remove unused resourcesWithPreset function
5a1f2e1 to
b2cc5b8
Compare
🤖 I have created a release *beep* *boop* --- ## [2.0.0](common-v1.8.0...common-v2.0.0) (2026-02-24) ### ⚠ BREAKING CHANGES * **common/resources:** drop cpu limits by default ([#1987](#1987)) ### Features * **common/resources:** drop cpu limits by default ([#1987](#1987)) ([d4564a5](d4564a5)) ### Miscellaneous Chores * **common/dependencies:** update helm release common to v2.34.0 ([#1965](#1965)) ([af9e6b3](af9e6b3)) * **common/dependencies:** update helm release common to v2.36.0 ([#1983](#1983)) ([0b5e540](0b5e540)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Breaking Changes** * Default CPU limits have been removed from the common chart. Update your deployment configurations if you currently rely on these limits. * **Chores** * Updated helm dependencies to v2.34.0 and v2.36.0. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
chore!: remove unused resourcesWithPreset function
Summary by CodeRabbit
New Features
setCPULimitsconfiguration option to control CPU limit inclusion in resource presets.Behavior Changes