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

stacklok / toolhive / 19312047856 / 1
50%
main: 50%

Build:
DEFAULT BRANCH: main
Ran 12 Nov 2025 09:18PM UTC
Files 382
Run time 20s
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

12 Nov 2025 09:12PM UTC coverage: 49.006% (+0.09%) from 48.921%
19312047856.1

push

github

web-flow
Consolidate Kubernetes client utilities into pkg/k8s (#2560)

Consolidate Kubernetes client utilities

Move Kubernetes client creation and configuration utilities from
pkg/container/kubernetes to a new common package pkg/k8s. This
enables other packages to reuse these utilities without creating
circular dependencies.

Changes:
- Created pkg/k8s package with config, namespace, and client utilities
- Added three client creation functions for different use cases:
  * NewClient() for standard Kubernetes clientset
  * NewControllerRuntimeClient() for CRD-aware controller-runtime clients
  * NewDynamicClient() for dynamic/unstructured resource access
- Migrated pkg/container/kubernetes, pkg/groups, and operator to use pkg/k8s
- Removed duplicate namespace detection code
- Separated I/O operations from pure logic for better testability
- Added comprehensive test coverage with parallel-safe tests

Benefits:
- Single source of truth for Kubernetes client operations
- Eliminates code duplication across packages
- Better architecture with proper separation of concerns
- Improved testability with 100% test coverage of logic functions
- No circular dependencies between packages

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>

24239 of 49461 relevant lines covered (49.01%)

35.68 hits per line

Source Files on job 19312047856.1
  • Tree
  • List 382
  • Changed 5
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19312047856
  • f726d52f on github
  • Prev Job for on main (#19311403055.1)
  • Next Job for on main (#19314204224.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc