Skip to content

Add default resource limits to VirtualMCPServer vmcp container - #3689

Merged
jerm-dro merged 1 commit into
mainfrom
jd/vmcp-default-resource-limits
Feb 9, 2026
Merged

jerm-dro merged 1 commit into
mainfrom
jd/vmcp-default-resource-limits

Conversation

@jerm-dro

@jerm-dro jerm-dro commented Feb 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds default CPU/memory resource limits (100m/128Mi requests, 500m/512Mi limits) to the vmcp container in VirtualMCPServer deployments
  • Prevents unbounded resource consumption by misbehaving containers
  • Users can override defaults via PodTemplateSpec (existing strategic merge patch mechanism)

Closes #2873

Test plan

  • Unit test verifies default resources are applied to the vmcp container
  • Unit test verifies user-provided resources via PodTemplateSpec override defaults
  • All existing PodTemplateSpec tests continue to pass
  • Linting passes with zero issues

🤖 Generated with Claude Code

The vmcp container was created without CPU/memory resource limits,
allowing unbounded resource consumption. Add sensible defaults
(100m/128Mi requests, 500m/512Mi limits) that users can override
via PodTemplateSpec.

Closes #2873

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@github-actions github-actions Bot added the size/XS Extra small PR: < 100 lines changed label Feb 6, 2026
@codecov

codecov Bot commented Feb 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.95%. Comparing base (ad85138) to head (11ec5d6).
⚠️ Report is 28 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3689      +/-   ##
==========================================
+ Coverage   65.88%   65.95%   +0.06%     
==========================================
  Files         417      417              
  Lines       41214    41224      +10     
==========================================
+ Hits        27154    27189      +35     
+ Misses      11962    11936      -26     
- Partials     2098     2099       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jerm-dro
jerm-dro merged commit 9206aa4 into main Feb 9, 2026
38 checks passed
@jerm-dro
jerm-dro deleted the jd/vmcp-default-resource-limits branch February 9, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add default resource limits to VirtualMCPServer vmcp container

2 participants