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

kubernetes-sigs / kubebuilder / 25791217132 / 1
82%
master: 82%

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

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>

7716 of 9376 relevant lines covered (82.3%)

73.57 hits per line

Source Files on job 25791217132.1
  • Tree
  • List 102
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25791217132
  • d73da26b on github
  • Prev Job for on master (#25758291075.1)
  • Next Job for on master (#25901826658.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