-
Notifications
You must be signed in to change notification settings - Fork 0
Small alterations #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: nigel brown <nigel@stacklok.com>
PR Review✅ Overall Assessment: Approved This PR correctly aligns documentation and configuration with the actual repository organization (stackloklabs vs stacklok). Positive Points
Minor Observations
Code Quality
Recommendation: Merge after confirming 0.1.1 image availability. |
|
With these changes it is still not working. There was a change in how toolhive-operator handles env. The ChangeCommit 2485c15e - "removes unused cli flags from proxyrunner" fundamentally changed how configuration is passed: Before (CLI flags):
After (File-based config):
The BugLooking at the logs we saw: The operator IS creating the runconfig.json file, BUT it's not properly including the environment variables from the The operator needs to be updated to ensure that when it creates the |
|
Reported stacklok/toolhive#2606 and stacklok/toolhive#2605. I don't think we can make this work for now. |
|
Some background: Kubernetes Deployment Issues - Investigation SummaryDate: November 17, 2025 OverviewThis document summarizes the investigation into kubernetes-integration.md documentation accuracy and deployment issues discovered during testing in Rancher Desktop. Documentation Issues Found & Fixed1. ✅ FIXED: Wrong Container Registry Path
2. ✅ FIXED: GitHub Server ProxyMode Mismatch
3. ✅ FIXED: Helm Chart Using PodTemplateSpec (Incompatible with Current Operator)
ToolHive Operator Bugs DiscoveredBug #1: PodTemplateSpec Environment Variables Not Transferred
|
| Component | Status | Notes |
|---|---|---|
| ToolHive Operator | ✅ Running | Version 0.2.22 |
| Fetch MCP Server | ✅ Running | Working correctly |
| GitHub MCP Server | ✅ Running | Working correctly (after proxyMode fix) |
| MCP Optimizer | ❌ CrashLoopBackOff | Blocked by volume bug |
Recommendations
For ToolHive Team
-
Fix Volume Handling (Critical):
- Update
createRunConfigFromMCPServer()to include volumes in runconfig.json - OR apply volumes directly to pod spec (bypassing runconfig.json)
- Test with volume configurations
- Update
-
Consider PodTemplateSpec Support:
- Either: Support podTemplateSpec in runconfig.json creation
- Or: Document that podTemplateSpec is no longer supported
- Or: Apply podTemplateSpec directly to pods (bypass runconfig.json for these fields)
-
Add Migration Guide:
- Document the Nov 10, 2025 breaking changes
- Provide migration path from podTemplateSpec to top-level fields
- Update all examples and documentation
For MCP Optimizer Users
Current Status: Cannot deploy MCP Optimizer successfully in Kubernetes due to volume mounting bug.
Temporary Options:
- Wait for ToolHive operator fix
- Use local/Docker deployment instead of Kubernetes
- Build custom operator version with volume fix
Test Environment
- Kubernetes: Rancher Desktop
- ToolHive Operator Version: 0.2.22
- ToolHive Operator CRDs: 0.0.34
- MCP Optimizer Image: ghcr.io/stackloklabs/mcp-optimizer:0.1.1
- Test Date: November 17, 2025
References
- ToolHive Operator Commit:
2485c15e- "removes unused cli flags from proxyrunner" - MCP Optimizer Initial Commit:
48921bc- Original working configuration - Operator Source:
/Users/nigel/code/toolhive/cmd/thv-operator/controllers/mcpserver_runconfig.go
Some changes to align the docs and demo config.