Skip to content

🌱 Remove Toolhive CRD and operator from install process and tests - #588

Merged
mrsabath merged 1 commit into
rossoctl:mainfrom
pdettori:issue-558
Jan 31, 2026
Merged

mrsabath merged 1 commit into
rossoctl:mainfrom
pdettori:issue-558

Conversation

@pdettori

@pdettori pdettori commented Jan 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Remove Toolhive CRD and operator from install process and tests.

Changes Made

Ansible Installer (deployments/ansible/)

  • roles/kagenti_installer/tasks/main.yml: Removed all Toolhive CRD and operator installation tasks (80+ lines)
  • default_values.yaml: Removed toolhiveCRDs, toolhiveOperator sections and chart entries
  • roles/kagenti_installer/tasks/01_setup_vars.yaml: Removed toolhive variable merges
  • cleanup-install.sh: Removed toolhive-system namespace, helm releases, and MCPServer CR cleanup

Environment Values Files (deployments/envs/)

  • dev_values.yaml: Removed toolhive settings and component entries
  • ocp_values.yaml: Removed root-level and component-level toolhive settings
  • dev_values_minimal.yaml: Removed toolhive entries
  • dev_values_minimal_auth.yaml: Removed toolhive entries

Charts

  • charts/kagenti-deps/values.yaml: Removed toolhiveCRDs, toolhiveOperator, and toolhive components
  • charts/kagenti/templates/ui.yaml: Removed RBAC for toolhive.stacklok.dev API group

GitHub Scripts

  • Deleted: .github/scripts/kagenti-operator/43-wait-toolhive-crds.sh
  • Updated: deploy-platform.sh, kind-full-test.sh, hypershift-full-test.sh, create-cluster.sh to remove toolhive steps
  • Updated: k8s-utils.sh and 70-setup-team1-namespace.sh to remove toolhive references

Tests and Examples

  • kagenti/tests/e2e/conftest.py: Removed toolhive entries from feature flags
  • kagenti/tests/e2e/kagenti_operator/conftest.py: Updated service name fixture for new naming convention
  • Deleted: kagenti/examples/mcpservers/weather_tool_ocp.yaml and kagenti/examples/tools/weather_tool_shipwright.yaml (legacy MCPServer examples)

Related issue(s)

Fixes #558

🤖 Assisted by Claude Code

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the Toolhive CRD and operator from the Kagenti installation process and tests, transitioning to standard Kubernetes Deployments and Services for MCP tools instead of custom MCPServer CRDs.

Changes:

  • Removed Toolhive CRD and operator installation from Ansible roles, Helm charts, and environment configuration files
  • Updated test fixtures to reflect new service naming convention (e.g., weather-tool-mcp instead of mcp-weather-tool-headless)
  • Deleted legacy MCPServer example manifests and the obsolete 43-wait-toolhive-crds.sh script
  • Removed Toolhive references from cleanup scripts, deployment workflows, and GitHub CI scripts
  • Updated comments to reflect that tools now use standard Kubernetes workloads

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.

Show a summary per file
File Description
kagenti/tests/e2e/conftest.py Removed toolhive feature flags from test configuration
kagenti/tests/e2e/kagenti_operator/conftest.py Updated weather tool service name fixture to new naming convention
kagenti/examples/tools/weather_tool_shipwright.yaml Deleted legacy MCPServer CRD examples
kagenti/examples/mcpservers/weather_tool_ocp.yaml Deleted OpenShift MCPServer example
kagenti/examples/mcpservers/weather_tool.yaml Updated comment to remove MCPServer CRD reference
deployments/envs/ocp_values.yaml Removed toolhive settings and chart entries
deployments/envs/dev_values_minimal_auth.yaml Removed toolhive configuration
deployments/envs/dev_values_minimal.yaml Removed toolhive configuration
deployments/envs/dev_values.yaml Removed toolhive settings and component entries
deployments/ansible/roles/kagenti_installer/tasks/main.yml Removed 80+ lines of Toolhive installation tasks and OpenShift SCC workarounds
deployments/ansible/roles/kagenti_installer/tasks/01_setup_vars.yaml Removed toolhive variable merges
deployments/ansible/default_values.yaml Removed toolhive defaults and chart configuration
deployments/ansible/cleanup-install.sh Removed toolhive-system namespace and MCPServer CR cleanup
charts/kagenti/templates/ui.yaml Removed RBAC permissions for toolhive.stacklok.dev API group
charts/kagenti-deps/values.yaml Removed toolhive components and fixed formatting
.github/scripts/local-setup/kind-full-test.sh Removed Toolhive CRD wait step
.github/scripts/local-setup/hypershift-full-test.sh Removed Toolhive CRD wait step
.github/scripts/lib/k8s-utils.sh Removed toolhive from CRD grep pattern
.github/scripts/kind/deploy-platform.sh Removed Toolhive step and renumbered remaining steps
.github/scripts/kagenti-operator/70-setup-team1-namespace.sh Updated comment to remove Toolhive operator reference
.github/scripts/kagenti-operator/43-wait-toolhive-crds.sh Deleted obsolete script file
.github/scripts/hypershift/create-cluster.sh Removed Toolhive CRD wait step

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mrsabath mrsabath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@mrsabath
mrsabath merged commit ca997fa into rossoctl:main Jan 31, 2026
23 checks passed
@pdettori
pdettori deleted the issue-558 branch January 31, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Remove ToolHive CRD and operator from installer.

3 participants