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

kubevirt / hyperconverged-cluster-operator / 22721296982
79%

Build:
DEFAULT BRANCH: main
Ran 05 Mar 2026 02:02PM UTC
Jobs 1
Files 131
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

05 Mar 2026 01:58PM UTC coverage: 79.031% (-0.2%) from 79.234%
22721296982

push

github

web-flow
CNV-78904: Add webhooks for v1 + conversion webhook (#4063)

* create v1 mutate webhook as a copy of v1beta1 one

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

* create v1 validating webhook as a copy of v1beta1 one

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

* Register v1 mutating and validating webhooks

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

* Deploy the new webhooks

Add the new v1 mutating and validating webhooks to the deployment
manifests (the CSVs manifest for OLM deployment, and the
deploy/webhooks.yaml file, to be used by the the hack/deploy.sh
script.

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

* Add and register the conversion webhook

The conversion webhook is built automatically by the operator-runtime,
based on the `Hub` and `conversion.Convertible` interfaces we already
implemented for the HyperConverged type.

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

* add conversion webhook configuration to the CRD

Added a new controller to the webhook pod, to watch the HCO CRD, and to
add the conversion webhook configurations to the CRD spec.

In plain K8s or when deploying with OLM v1, the caBundle field is
injected to the CRD, as result of an annotation.

For OLM v0 installation, the controller takes the caBundle from the
secret, instead of using caBundle injection annotation.

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

* Add a functional test for conversion

Add a very naive e2e test to read the HyperConverged CR in v1 format.

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

* fix comment from previous PR

Fix this comment: https://github.com/kubevirt/hyperconverged-cluster-operator/pull/4046#discussion_r2871449465

disable the specific `receiver-naming` linter rule (from the revive
linter)

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

---------

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

557 of 662 new or added lines in 8 files covered. (84.14%)

9294 of 11760 relevant lines covered (79.03%)

1.95 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
5.47
0.0% pkg/components/components.go
1
95.45
0.27% pkg/webhooks/mutator/hyperConvergedMutator.go
2
93.94
-6.06% pkg/webhooks/setup.go
7
80.0
pkg/webhooks/mutator/v1beta1_hyperConvergedMutator.go
10
70.69
-20.57% pkg/webhooks/validator/validator.go
25
93.49
pkg/webhooks/validator/v1beta1_validator.go
59
61.94
controllers/webhooks/conversion-webhook-controller/controller.go
Jobs
ID Job ID Ran Files Coverage
1 Unit - 22721296982.1 05 Mar 2026 02:02PM UTC 131
79.03
GitHub Action Run
Source Files on build 22721296982
  • Tree
  • List 131
  • Changed 7
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22721296982
  • 0a0cdd3b on github
  • Prev Build on main (#22718664106)
  • Next Build on main (#22799314754)
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