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

kubevirt / hyperconverged-cluster-operator / 14487318847
73%
main: 79%

Build:
Build:
LAST BUILD BRANCH: bump-kubevirtci
DEFAULT BRANCH: main
Ran 16 Apr 2025 07:41AM UTC
Jobs 1
Files 83
Run time 5min
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

16 Apr 2025 07:37AM UTC coverage: 72.428% (+0.1%) from 72.315%
14487318847

push

github

web-flow
[release-1.15] Check descheduler according to new profile (#3486)

* Check descheduler according to new profile

On the descheduler we now have a KubeVirt
dedicated profile named KubeVirtRelieveAndMigrate.
Enforce its presence if the descheduler is in use.

Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>

* Move the KubeDescheduler validation to the controller

The clusterInfo interface's  `IsDeschedulerMisconfigured()` and
`RefreshDeschedulerCR()` functions are only called from the controller,
and should not be globally available. Also, the current logic is using a
cache mechanism that is never actually used, becase the user call always
calls `RefreshDeschedulerCR()` (to refresh the cache) before calling to
`IsDeschedulerMisconfigured()` (to read the cache). So the cache saves
nothing.

In addition, the ClusterInfo is huge: it contains 21 functions, while
golang best practice is to write interfaces as smaller as possible. It
is hard to implement and maintain such a big interface, where any change
in any function, need to be implemented in all the implementations.

This commit moves the KubeDescheduler validation logic from the
ClusterInfo, to the descheduler controller, where it actually been used,
to get more effective, more readable code, and to reduce the number of
functions in the ClusterInfo interface.

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

* Align e2e tests

Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>

---------

Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
Co-authored-by: Simone Tiraboschi <stirabos@redhat.com>
Co-authored-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>

16 of 27 new or added lines in 2 files covered. (59.26%)

6533 of 9020 relevant lines covered (72.43%)

0.95 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
38.89
17.27% controllers/descheduler/descheduler_controller.go
7
0.0
0.0% pkg/monitoring/hyperconverged/metrics/infrastructure_metrics.go
Jobs
ID Job ID Ran Files Coverage
1 Unit - 14487318847.1 16 Apr 2025 07:41AM UTC 83
72.43
GitHub Action Run
Source Files on build 14487318847
  • Tree
  • List 83
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14487318847
  • b68c7d02 on github
  • Prev Build on release-1.15 (#14438152396)
  • Next Build on release-1.15 (#14488854938)
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