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

kubevirt / hyperconverged-cluster-operator / 17672450297
73%
main: 80%

Build:
Build:
LAST BUILD BRANCH: bump-kubevirtci
DEFAULT BRANCH: main
Ran 12 Sep 2025 11:01AM UTC
Jobs 1
Files 89
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

12 Sep 2025 10:57AM UTC coverage: 72.67% (+0.4%) from 72.292%
17672450297

push

github

web-flow
Fix the Webhook's metrics endpoint (#3708) (#3756)

* Move the APIServer controller into sub-pkg

The APIServer controller is currenlty the only webhook controller.
In order to later add another webhook controller, move the webhook
controller files into the new
"controllers/webhooks/apiserver-controller" sub-package.



* Expose several functions and consts in the alerts pkg

In order to share code with the new WH bearer token reconciler, expose
several functions and consts.



* Add new Bearer token controller to the WH

The metrics endpoint in the operator and the webhook are protected with
a bearer token. However, the creation of the related resources are only
done for the operator. That makes the webhook metrics endpoint non-accessible.

This commit adds a controller to the webhook, to ceate and reconcile the
missing resources.



* add e2e test to validate the WH bearer token



* fix bug: remove 3 left over services after uninstalling HCO



---------

Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>

306 of 399 new or added lines in 14 files covered. (76.69%)

1 existing line in 1 file now uncovered.

6767 of 9312 relevant lines covered (72.67%)

0.96 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
80.0
controllers/alerts/constants.go
1
85.23
2.26% controllers/alerts/reconciler.go
1
93.51
0.26% controllers/alerts/service.go
1
83.94
0.11% pkg/util/cluster.go
5
93.83
controllers/webhooks/bearer-token-controller/bearer_token_controller.go
19
51.9
-7.42% controllers/alerts/secret.go
65
3.0
-0.07% pkg/components/components.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
82.14
-1.19% controllers/operands/quickStart.go
Jobs
ID Job ID Ran Files Coverage
1 Unit - 17672450297.1 12 Sep 2025 11:01AM UTC 89
72.67
GitHub Action Run
Source Files on build 17672450297
  • Tree
  • List 89
  • Changed 12
  • Source Changed 9
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17672450297
  • 543c5fec on github
  • Prev Build on release-1.15 (#17579055375)
  • Next Build on release-1.15 (#18021137284)
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