• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 43912873326
75%

Build:
DEFAULT BRANCH: main
Ran 16 Nov 2026 05:03PM UTC
Jobs 1
Files 1032
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Nov 2026 04:55PM UTC coverage: 73.43% (+0.02%) from 73.406%
43912873326

push

github

web-flow
Add default resource limits for MCPRemoteProxy (#7137)

* fix(operator): add default resource limits for MCPRemoteProxy

Apply proxy-runner defaults when MCPRemoteProxy omits resource requests/limits,
merge user overrides on top of those defaults, and keep deployment drift detection
aligned with the same effective resource calculation.

Closes #3131

* Harden MCPRemoteProxy resource defaulting

Address review feedback on the default resource limits change:

- Clamp the defaulted side of a request/limit pair so a partial
  override (e.g. only requests.memory: 512Mi) cannot produce a
  request above the default limit, which the apiserver rejects.
- Compare resources with equality.Semantic.DeepEqual in drift
  detection so non-canonical overrides such as cpu "0.2" do not
  trigger a perpetual reconcile/update loop.
- Document the defaults on the CRD field and in the operator
  architecture doc, and regenerate CRD manifests and API docs.
- Fix gofmt and codespell failures.

Co-Authored-By: xing <echoecho_2024@qq.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Clamp resource defaults against podTemplateSpec

The podTemplateSpec is applied as a strategic merge patch after the
defaults are set, and that patch merges requests and limits key by
key. A podTemplateSpec that set only requests kept the default limits,
so the request could exceed the limit and the apiserver rejected the
Deployment. On main the same CR was valid because there were no
defaults to collide with.

Add a generic controllerutil.BuildContainerResourceRequirements that
layers defaults, the CRD resources field and the podTemplateSpec
container resources (podTemplateSpec wins), then clamps. A null entry
in the podTemplateSpec drops that key, matching what the patch does.
Defaults are passed in so VirtualMCPServer can adopt it later.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Keep Kubernetes request defaulting for limits

When a contai... (continued)

96 of 103 new or added lines in 3 files covered. (93.2%)

5 existing lines in 4 files now uncovered.

96656 of 131630 relevant lines covered (73.43%)

885.0 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
85.29
-0.35% cmd/thv-operator/controllers/mcpremoteproxy_deployment.go
2
74.86
0.05% cmd/thv-operator/controllers/mcpremoteproxy_controller.go
2
99.04
-0.96% cmd/thv-operator/pkg/controllerutil/resources.go

Coverage Regressions

Lines Coverage ∆ File
2
80.0
-5.71% pkg/vmcp/backendregistry/registry.go
1
94.24
0.0% pkg/authserver/storage/memory.go
1
96.77
-3.23% pkg/foreach/foreach.go
1
88.02
-0.12% pkg/transport/proxy/transparent/transparent_proxy.go
Jobs
ID Job ID Ran Files Coverage
1 43912873326.1 16 Nov 2026 05:03PM UTC 1032
73.43
GitHub Action Run
Source Files on build 43912873326
  • Tree
  • List 1032
  • Changed 12
  • Source Changed 4
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43912873326
  • 35b31f09 on github
  • Prev Build on main (#43875211519)
  • Next Build on main (#43973748272)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc