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

kubevirt / hyperconverged-cluster-operator / 19672035846
76%

Build:
DEFAULT BRANCH: main
Ran 25 Nov 2025 02:01PM UTC
Jobs 1
Files 106
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

25 Nov 2025 01:58PM UTC coverage: 76.874% (-0.005%) from 76.879%
19672035846

push

github

web-flow
CNV-73300: Remove old NetworkPolicies on Upgrade (#3888)

* Remove old NetworkPolicies on Upgrade

In order to make sure we can safely deploy network policies by OLM,
we must have a way to clean them up if needed.

We label the OLM deployed network policies with
`np.kubevirt.io/version`, with the value of the CSV-Version.

During upgrade, HCO will remove any NetworkPolicy that is in the
installation namespace, and has the np.kubevirt.io/version, with the
value not equal to the HCO version (taken from the
`HCO_KV_IO_VERSION` environment variable).

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

* Split the upgrade unit tests out of hyperconverged_controller_test.go

The hyperconverged_controller_test.go file is too large to maintain.
This commit takes out all the upgrade related tests into a new dedicated
file, upgrade_test.go.

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

---------

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

21 of 28 new or added lines in 2 files covered. (75.0%)

8008 of 10417 relevant lines covered (76.87%)

1.84 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
78.52
-0.14% controllers/hyperconverged/hyperconverged_controller.go
5
77.94
1.2% controllers/hyperconverged/remove_old_objects.go
Jobs
ID Job ID Ran Files Coverage
1 Unit - 19672035846.1 25 Nov 2025 02:01PM UTC 106
76.87
GitHub Action Run
Source Files on build 19672035846
  • Tree
  • List 106
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19672035846
  • e36a717d on github
  • Prev Build on main (#19662048732)
  • Next Build on main (#19679943403)
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