Repository navigation
Drop per-component CRD and controller gating from operator install - #5281
Merged
ChrisJBurns merged 3 commits intoMay 14, 2026
Merged
Conversation
Replace the in-repo crd-helm-wrapper Go program with the external stacklok/helm-crd-wrapper binary. The external tool intentionally does not support per-CRD feature gating, so the chart now exposes a single crds.install boolean instead of per-component flags (crds.install.server / .registry / .virtualMcp). Pinned to commit a736420b — no tagged release exists yet; swap for a tag when one is cut. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ChrisJBurns
requested review from
JAORMX,
jerm-dro,
jhrozek and
yrobla
as code owners
May 14, 2026 14:27
The ENABLE_SERVER / ENABLE_REGISTRY / ENABLE_VMCP env vars added in #3093 let chart consumers selectively start controller groups. We have no remaining use case for partial controller installs — the chart now ships all CRDs together, and the operator should match. - Drop feature flag constants, dependency map, and isFeatureEnabled helper from main.go; setupControllersAndWebhooks now calls each setup helper unconditionally. - Delete main_test.go (only tested the removed helper). - Drop operator.features.{server,registry,virtualMCP} from values.yaml and the corresponding ENABLE_* env vars from the Deployment template. - Regenerate operator chart README via helm-docs. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5281 +/- ##
=======================================
Coverage 68.36% 68.37%
=======================================
Files 619 619
Lines 63361 63318 -43
=======================================
- Hits 43316 43291 -25
+ Misses 16810 16795 -15
+ Partials 3235 3232 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
amirejaz
approved these changes
May 14, 2026
amirejaz
left a comment
Contributor
There was a problem hiding this comment.
Two comments in .github/workflows/api-compat.yml (lines 24 and 27) still reference crd-helm-wrapper — should be helm-crd-wrapper now that the Taskfile switched to the external package.
ChrisJBurns
deleted the
helm-crd-wrapper-integration-for-operator-manifest
branch
May 14, 2026 15:21
2 tasks done
ChrisJBurns
added a commit
that referenced
this pull request
May 14, 2026
The Taskfile switched to the external helm-crd-wrapper package in #5281 but two comments in .github/workflows/api-compat.yml still referenced the old crd-helm-wrapper name. Update them so the comments match the tool actually in use. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
2 tasks done
2 tasks done
ChrisJBurns
added a commit
to stacklok/docs-website
that referenced
this pull request
Jun 10, 2026
* Remove feature flag CRD install options Upstream PR stacklok/toolhive#5281 removed the granular CRD install flags (crds.install.server/registry/virtualMcp); all controllers now register unconditionally and the chart exposes a single crds.install boolean. Update the operator deployment guide to match. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * Align upgrade CRD guidance with full CRD set The kubectl upgrade instructions still told readers to apply only the CRDs they need. Match the install section: apply the complete set. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two related changes that move toolhive away from per-component install/runtime gating for operator CRDs and controllers:
stacklok/helm-crd-wrapperbinary in place of the in-repocrd-helm-wrapper/Go program. Sharing one tool across charts (toolhive, stacklok-llm-gateway, …) keeps wrap behavior consistent and removes a copy of the code from this repo. The external tool intentionally has no per-CRD configuration — its README says "either every CRD surviveshelm uninstallor none do; mixed install groups inside one chart … usually means there should be two charts." We agree.ENABLE_SERVER/ENABLE_REGISTRY/ENABLE_VMCP). We never use the ability to run with a partial controller set, and the runtime gating only adds a way to land in a broken half-installed state (e.g.virtualMCP=truewithserver=false, guarded by an ad-hoc dependency map). All controllers now register unconditionally.The two changes pair naturally: the chart no longer offers granular install knobs and the operator no longer offers granular runtime knobs, so the install/start path is uniform.
The external
helm-crd-wrapperis pinned to commita736420bbecause it has no tagged release yet — swap for a tag when one is cut.Type of change
(Behavior change is limited to the chart values schema — see "user-facing change" below. Default behavior is unchanged for both pieces.)
Test plan
task operator-test)task lint-fix)Manual verification:
task operator-manifests(fromcmd/thv-operator/) regenerates all 13 wrapped CRD templates via the external binary.helm template test deploy/charts/operator-crdsrenders 13 CRDs with defaults;--set crds.install=falserenders 0.helm template test deploy/charts/operatorrenders the operator Deployment with onlyENABLE_EXPERIMENTAL_FEATURESremaining among theENABLE_*env vars.helm-docs --chart-search-root=deploy/chartsregenerates both chart READMEs cleanly.ct lint --charts deploy/charts/operator-crdspasses chart validation (onlyyamllint-not-installed warning, unrelated).go build ./cmd/thv-operator/...succeeds;task operator-testpasses.Changes
Chart-level wrapper swap
cmd/thv-operator/Taskfile.ymloperator-manifestsnowgo installs the external binary and invokes it with-source/-targetonly.deploy/charts/operator-crds/values.yamlcrds.install.{server,registry,virtualMcp}into a singlecrds.install: trueboolean.deploy/charts/operator-crds/templates/*.yaml(13 files){{- if .Values.crds.install }}.deploy/charts/operator-crds/crd-helm-wrapper/deploy/charts/operator-crds/.helmignore,.gitignoredeploy/charts/operator-crds/README.mdhelm-docs.Operator controller gating removal
cmd/thv-operator/main.gocontrollerDependenciesmap, dispatcher branching, andisFeatureEnabled.setupControllersAndWebhooksnow calls each setup helper unconditionally.cmd/thv-operator/main_test.goisFeatureEnabledand the dependency map.deploy/charts/operator/values.yamloperator.features.{server,registry,virtualMCP}.deploy/charts/operator/templates/deployment.yamlENABLE_SERVER/ENABLE_REGISTRY/ENABLE_VMCPenv vars.deploy/charts/operator/README.mdhelm-docs.This is a breaking change for any consumer who set one of the removed flags to
false. Default behavior is unchanged — anyone running on defaults (or who only set them totrue) is unaffected — but explicit opt-outs are silently dropped:crds.install.{server,registry,virtualMcp}=false(operator-crds chart): override is ignored; all CRDs install. Most likely affected: consumers who setvirtualMcp=falseto skip vMCP CRDs.operator.features.{server,registry,virtualMCP}=false(operator chart): override is ignored; all controllers register. Pairs with the above — vMCP opt-outs are the most likely case.ENABLE_SERVER/ENABLE_REGISTRY/ENABLE_VMCPenv vars on the operator binary: silently ignored. Operators run outside the chart with these set will start every controller anyway.No CRD schema or v1beta1 API break. The
api-compat.ymlcheck is unaffected.Migration: remove the old keys from your values files (left in place they are silently ignored). If a consumer was depending on skipping vMCP CRDs/controllers for operational reasons, raise it before merge so we can decide whether to put gating back behind a single coarser knob.
Does this introduce a user-facing change?
Yes — chart consumers who set any of the removed values must update their values files:
The previous keys are silently ignored after this change. Default behavior (all CRDs installed, all controllers started) is unchanged.
Special notes for reviewers
stacklok/helm-crd-wrapperhas no tagged release yet, so the Taskfile pins@a736420b58d68304fac3934cce57c67d0a989fe7. Replace with a semver tag once one is cut.api-compat.ymlworkflow's comments still referencecrd-helm-wrappergenerically; they remain accurate (the source-of-truth pathfiles/crds/is unchanged) so I left them alone.🤖 Generated with Claude Code