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

kubevirt / hyperconverged-cluster-operator / 28477311386
81%

Build:
DEFAULT BRANCH: main
Ran 30 Jun 2026 09:35PM UTC
Jobs 1
Files 151
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

30 Jun 2026 09:33PM UTC coverage: 81.428% (+0.2%) from 81.271%
28477311386

push

github

web-flow
 netresinjector: Make deployment conditional on spec field (#4346)

* api: Add v1-only fields conversion framework

Introduce a generic framework for handling v1-only fields during
API version conversion between v1 and v1beta1. This addresses the
issue where fields that only exist in v1 would be lost when users
modify the HyperConverged CR using the v1beta1 API.

The framework uses an annotation-based approach:
- When converting v1 → v1beta1, v1-only fields are stored in the
  annotation 'hco.kubevirt.io/v1-only-fields' as JSON
- When converting v1beta1 → v1, the fields are restored from the
  annotation and then the annotation is removed

This is a generic framework that can be extended for future v1-only
fields by adding them to the v1OnlyFields struct and updating the
store/restore logic.

Assisted-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Nir Dothan <ndothan@redhat.com>

* api: Add deployNetworkResourcesInjector field to DeploymentConfig

Currently, there are 2 operators in the OLM catalog that deploy the
netwrok-resources-injector webhook: HCO and SR-IOV Network Operator.
While they are safe to use concurrently, users can benefit from
disabling one instance.
In such cases the instance that should be disabled is the HCO one,
because its scope is specific to CNV, while the other one has a more
general scope.

Adds spec.deployment.deployNetworkResourcesInjector boolean field to
control deployment of the network-resources-injector component.

When enabled (default: true), the network-resources-injector mutating
webhook is deployed to automatically inject resource requests for
custom resources annotated in NetworkAttachmentDefinition.

This is a deployment configuration field (not a feature gate),
allowing users to opt-out of the network-resources-injector if needed.

Signed-off-by: Nir Dothan <ndothan@redhat.com>
Assisted by: Claude Sonnet 4.5 <noreply@anthropic.com>

* netresinjector: Make deployment conditional on spec field

Mak... (continued)

155 of 159 new or added lines in 8 files covered. (97.48%)

11338 of 13924 relevant lines covered (81.43%)

2.18 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
92.84
-0.38% api/v1beta1/conversion.go
Jobs
ID Job ID Ran Files Coverage
1 Unit - 28477311386.1 30 Jun 2026 09:35PM UTC 151
81.43
GitHub Action Run
Source Files on build 28477311386
  • Tree
  • List 151
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28477311386
  • a8d64eb4 on github
  • Prev Build on main (#28452601502)
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