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

camilamacedo86 / kubebuilder / 21599330233
74%
master: 74%

Build:
Build:
LAST BUILD BRANCH: add-namesapced-support
DEFAULT BRANCH: master
Ran 02 Feb 2026 05:05PM 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

02 Feb 2026 04:50PM UTC coverage: 73.655% (+0.009%) from 73.646%
21599330233

push

github

camilamacedo86
feat(go/v4): add namespace-scoped manager support

Add --namespaced flag to scaffold managers that watch only specific namespace(s),
enabling least-privilege deployments and multi-tenant architectures.

Changes:
- Add --namespaced flag to init and edit commands
- Scaffold Role/RoleBinding instead of ClusterRole/ClusterRoleBinding
- Add WATCH_NAMESPACE environment variable to manager deployment
- Add helper functions in cmd/main.go (getWatchNamespace, setupCacheNamespaces)
- Controllers automatically get namespace parameter in RBAC markers
- Support converting existing projects with 'kubebuilder edit --namespaced=true'
- Add comprehensive migration guide and reference documentation
- Add e2e test validating namespace isolation behavior
- Add integration test validating scaffolding correctness
- Update testdata project to demonstrate namespace-scoped configuration

Assisted-by: Cursor/Claude

42 of 59 new or added lines in 7 files covered. (71.19%)

186 existing lines in 5 files now uncovered.

6682 of 9072 relevant lines covered (73.66%)

40.23 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
80.0
0.0% pkg/plugins/golang/v4/edit.go
2
92.0
0.0% pkg/machinery/injector.go
3
93.88
0.0% pkg/machinery/mixins.go
3
62.6
0.0% pkg/plugins/golang/v4/init.go
8
87.21
0.0% pkg/config/v3/config.go

Uncovered Existing Lines

Lines Coverage ∆ File
6
80.0
0.0% pkg/plugins/golang/v4/edit.go
11
87.21
0.0% pkg/config/v3/config.go
21
62.6
0.0% pkg/plugins/golang/v4/init.go
68
89.92
0.0% pkg/plugins/optional/helm/v2alpha/scaffolds/internal/kustomize/helm_templater.go
80
65.86
0.21% pkg/cli/alpha/internal/generate.go
Jobs
ID Job ID Ran Files Coverage
1 21599330233.1 02 Feb 2026 05:05PM UTC 100
73.66
GitHub Action Run
Source Files on build 21599330233
  • Tree
  • List 100
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8c7d680e on github
  • Prev Build on add-namesapced-support (#21588241383)
  • Next Build on add-namesapced-support (#21599388355)
  • 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