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

kubernetes-sigs / kubebuilder / 20773136087
72%
master: 73%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/golang.org/x/text-0.33.0
DEFAULT BRANCH: master
Ran 07 Jan 2026 06: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

07 Jan 2026 06:47AM UTC coverage: 71.913% (+0.1%) from 71.782%
20773136087

Pull #5360

github

camilamacedo86
(helm/v2-alpha): Fix cross-namespace RBAC file naming and templating

Fixes handling of namespace-scoped Roles and RoleBindings in cross-namespace
scenarios (e.g., for leader election, cross-namespace permissions).

Changes:
1. File naming: Append namespace suffix only when RBAC namespace differs from
   manager namespace to prevent file collisions
   - Manager namespace: leader-election-role.yaml (no suffix)
   - Cross-namespace: manager-role-infrastructure.yaml (suffix added)

2. Namespace templating: Manager namespace references replaced with
   {{ .Release.Namespace }}, cross-namespace metadata preserved as-is
   - Role in manager NS: namespace: {{ .Release.Namespace }}
   - Role in other NS: namespace: infrastructure (unchanged)
   - Subjects always: namespace: {{ .Release.Namespace }}

3. Manager namespace detection: Extract from Deployment resource instead of
   assuming <prefix>-system pattern

Result: Cross-namespace RBAC resources now generate correctly with explicit
namespaces preserved and unique filenames, while manager-namespace resources
are properly templated for Helm release flexibility."

Assisted-by: Cursor
Pull Request #5360: (helm/v2-alpha): Fix cross-namespace RBAC file naming and templating

38 of 38 new or added lines in 3 files covered. (100.0%)

96 existing lines in 2 files now uncovered.

6388 of 8883 relevant lines covered (71.91%)

34.0 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
8
69.09
2.75% pkg/plugins/optional/helm/v2alpha/scaffolds/internal/kustomize/chart_writer.go
88
88.58
0.16% pkg/plugins/optional/helm/v2alpha/scaffolds/internal/kustomize/helm_templater.go
Jobs
ID Job ID Ran Files Coverage
1 20773136087.1 07 Jan 2026 06:57AM UTC 100
71.91
GitHub Action Run
Source Files on build 20773136087
  • Tree
  • List 100
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #5360
  • PR Base - master (#20766506276)
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