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

stacklok / toolhive / 30385920289
70%

Build:
DEFAULT BRANCH: main
Ran 28 Jul 2026 06:14PM UTC
Jobs 1
Files 864
Run time 3min
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

28 Jul 2026 06:06PM UTC coverage: 69.944% (+0.06%) from 69.88%
30385920289

push

github

web-flow
Remove referencingWorkloads/referenceCount from config CRD statuses (#5631)

* Stop storing referencing workloads on config CRD statuses

Remove the ReferencingWorkloads and ReferenceCount status fields from the six
config CRDs (MCPOIDCConfig, MCPAuthzConfig, MCPExternalAuthConfig,
MCPTelemetryConfig, MCPWebhookConfig, MCPToolConfig) and the machinery that
maintained them. After the indexer + stale-scan-removal work, that denormalized
list was kept fresh only to power a kubectl printer column — it no longer backs
deletion protection, which the finalizer recomputes live via
findReferencingWorkloads.

- Drop both fields (and the "References" printcolumn markers) from the v1beta1
  status structs and the v1alpha1 type markers; regenerate deepcopy.
- Remove the status-population paths in Reconcile, the workload watches and their
  map handlers (which existed only to refresh the list), and the
  workloadReferenceCount helper. Keep findReferencingWorkloads + the field
  indexes for the on-demand deletion check, and the DeletionBlocked condition.
- Update unit tests and the stale comments in the workload controllers.

BREAKING CHANGE: status.referencingWorkloads and status.referenceCount are
removed from all six config CRDs. Anything reading those fields (automation,
scripts, the kubectl "References" column) will no longer find them. Deletion
protection is unchanged.

See #5607.

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

* Update config integration suites for removed status fields

Drop the envtest specs that asserted Status.ReferencingWorkloads /
ReferenceCount tracking and pruning (those fields are gone). Deletion-protection
coverage is retained, rewritten to assert via the DeletionBlocked condition and
object existence rather than the removed list.

See #5607.

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

* Regenerate config CRD manifests and API docs

Regenerate the six config CRDs and crd-api.md after... (continued)

6 of 7 new or added lines in 4 files covered. (85.71%)

34 existing lines in 8 files now uncovered.

82191 of 117510 relevant lines covered (69.94%)

97.75 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
68.24
-2.05% cmd/thv-operator/controllers/mcpwebhookconfig_controller.go

Coverage Regressions

Lines Coverage ∆ File
6
68.24
-2.05% cmd/thv-operator/controllers/mcpwebhookconfig_controller.go
6
61.42
1.42% cmd/thv-operator/controllers/toolconfig_controller.go
5
75.78
-0.3% cmd/thv-operator/controllers/mcpauthzconfig_controller.go
5
80.11
0.59% cmd/thv-operator/controllers/mcpexternalauthconfig_controller.go
4
67.62
1.08% cmd/thv-operator/controllers/mcpoidcconfig_controller.go
3
64.37
1.47% cmd/thv-operator/controllers/mcptelemetryconfig_controller.go
3
67.14
-4.29% pkg/state/runconfig.go
2
66.81
5.33% pkg/workloads/manager.go
Jobs
ID Job ID Ran Files Coverage
1 30385920289.1 28 Jul 2026 06:14PM UTC 864
69.94
GitHub Action Run
Source Files on build 30385920289
  • Tree
  • List 864
  • Changed 28
  • Source Changed 17
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30385920289
  • 0a0cbd94 on github
  • Prev Build on main (#30382589799)
  • Next Build on main (#30436865952)
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