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

kubevirt / hyperconverged-cluster-operator / 7356983628
76%

Build:
DEFAULT BRANCH: main
Ran 29 Dec 2023 01:21PM UTC
Jobs 1
Files 47
Run time 3s
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

29 Dec 2023 01:16PM UTC coverage: 86.466% (+0.03%) from 86.436%
7356983628

push

github

web-flow
Add the AlignCPUs enabler (#2695)

* api: Introduce the AlignCPUs enabler

PR kubevirt/kubevirt#10872 introduced a cluster-wide
setting to enable KubeVirt to request up to two additional
dedicated CPUs in order to complete the total CPU count
to an even parity when using emulator thread isolation.

Introduce a new enabler to HCO's API in order to toggle this
behavior in KubeVirt.

The new API field is optional and defaults to false.

The logic behind it will be introduced in the
following commits.

Signed-off-by: Orel Misan <omisan@redhat.com>
Signed-off-by: Ram Lavi <ralavi@redhat.com>

* Control KubeVirt AlignCPUs FG

Use the `AlignCPUs` enabler in order to control
KubeVirt's `AlignCPUs` feature gate.

Signed-off-by: Orel Misan <omisan@redhat.com>

* Introduce AlignCPUs logic

When the FG is enabled ensure the Kubevirt CR will have:
1. The `AlignCPUs` feature gate enabled.
2. The `alpha.kubevirt.io/EmulatorThreadCompleteToEvenParity`
annotation set with a value of an empty string.

Following PR kubevirt/kubevirt#10872, it will enable KubeVirt
to request up to two additional dedicated CPUs in order to complete the
total CPU count to an even parity when using emulator thread isolation.

When the FG is disabled, do the opposite:
1. Make sure the `AlignCPUs` feature gate is disabled.
2. Make sure the above annotation is not set.

The logic introduced in this commit is allowing users to freely
annotate the Kubevirt CR, but HCO will ensure the required
state of the above annotation.

Signed-off-by: Orel Misan <omisan@redhat.com>

* Docs: cluster-config: Document alignCPUs FG

Signed-off-by: Orel Misan <omisan@redhat.com>
Signed-off-by: Ram Lavi <ralavi@redhat.com>

---------

Signed-off-by: Orel Misan <omisan@redhat.com>
Signed-off-by: Ram Lavi <ralavi@redhat.com>

5309 of 6140 relevant lines covered (86.47%)

0.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7356983628.1 29 Dec 2023 01:21PM UTC 0
86.47
GitHub Action Run
Source Files on build 7356983628
Detailed source file information is not available for this build.
  • Back to Repo
  • 4d4a6d9e on github
  • Prev Build on main (#7348144784)
  • Next Build on main (#7369390528)
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