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

camilamacedo86 / kubebuilder / 20691081682
71%
master: 74%

Build:
Build:
LAST BUILD BRANCH: dev-install
DEFAULT BRANCH: master
Ran 04 Jan 2026 09:57AM UTC
Jobs 1
Files 100
Run time 1min
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

04 Jan 2026 09:47AM UTC coverage: 71.354% (+10.1%) from 61.221%
20691081682

push

github

camilamacedo86
✨ (go/v4): Add optional kubectl context locking for e2e tests

E2E tests now support optional context locking via KUBE_CONTEXT environment
variable. When set, tests validate and lock to the specified kubectl context,
preventing context switching during execution.

Features:
- Display current kubectl context at test startup
- Validate context matches KUBE_CONTEXT if set
- Add --context flag to all kubectl commands when locked
- 100% backward compatible (opt-in feature)

Usage:
  KUBE_CONTEXT=kind-test make test-e2e

This addresses feedback from PR #5329 about preventing inadvertent context
switching during test execution, while maintaining ease of use (works without
any env vars by default).

Assisted-by: Cursor

6180 of 8661 relevant lines covered (71.35%)

29.69 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
24
86.01
3.57% pkg/machinery/scaffold.go
39
64.64
0.37% pkg/cli/alpha/internal/generate.go
89
63.89
-0.26% pkg/cli/alpha/internal/update/update.go
Jobs
ID Job ID Ran Files Coverage
1 20691081682.1 04 Jan 2026 09:57AM UTC 100
71.35
GitHub Action Run
Source Files on build 20691081682
  • Tree
  • List 100
  • Changed 17
  • Source Changed 0
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cd07c629 on github
  • Prev Build on add-e2e-context (#20683017754)
  • Delete
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