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

kubernetes-sigs / kubebuilder / 25791217132
82%

Build:
DEFAULT BRANCH: master
Ran 13 May 2026 09:44AM UTC
Jobs 1
Files 102
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

13 May 2026 09:42AM UTC coverage: 82.295% (-0.02%) from 82.313%
25791217132

push

github

web-flow
🐛 (grafana/v1alpha): Fix file handle leak on config read error (#5682)

* fix(grafana/v1alpha): close file handle on config read error

Replace the manual close pattern with idiomatic defer f.Close()
immediately after the successful open. The original code only closed
the file on the success path; if configReader returned an error, the
file descriptor leaked.

Since this is a read-only file (os.Open), close errors are not
actionable.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>

* Address review: check close error on both paths instead of nolint

Remove defer f.Close() with nolint:errcheck directive. Instead, check
the close error explicitly on both the error and success paths, which
satisfies errcheck without suppressing the lint rule.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>

---------

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>

0 of 3 new or added lines in 1 file covered. (0.0%)

7716 of 9376 relevant lines covered (82.3%)

73.57 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
84.96
-1.53% pkg/plugins/optional/grafana/v1alpha/scaffolds/edit.go
Jobs
ID Job ID Ran Files Coverage
1 25791217132.1 13 May 2026 09:44AM UTC 102
82.3
GitHub Action Run
Source Files on build 25791217132
  • Tree
  • List 102
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d73da26b on github
  • Prev Build on master (#25758291075)
  • Next Build on master (#25901826658)
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