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

kubevirt / hyperconverged-cluster-operator / 10355354530
76%

Build:
DEFAULT BRANCH: main
Ran 12 Aug 2024 04:07PM UTC
Jobs 1
Files 50
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

12 Aug 2024 04:04PM UTC coverage: 85.867% (-0.03%) from 85.892%
10355354530

push

github

web-flow
Register user-defined-network (UDN) binding on kubevirt CR (#3034)

* api: Introduce PrimaryUserDefinedNetworkBinding FG enabler

Introduce a new enabler: PrimaryUserDefinedNetworkBinding.
The default value is false.
This commit only adds the relevant API and documentation.
The logic of this enabler will be added in later commits.

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

* hco-operator: Add primary UDN Binding image env var

Adding a new image that is currently created by kubevirt/kubevirt [0].

[0] https://github.com/kubevirt/kubevirt/pull/10425

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

* util/cluster: Set HCO main() to fail if PrimaryUDNImageEnvV env var is not set

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

* operands/kubevirt: Set Kubevirt CR new primary UDN Binding plugin

The ability to register network bindings to Kubevirt VMs was proposed
[0] in order to allow Kubevirt VMs to connect to network bindings and
gain advanced user defined network capabilities.
The configuration is added to the kubevirt CR (kubevirt feature gate* +
configuring the binding parameters).

This commit deploys and registers a primary user-defined-network (UDN)
binding to the kubevirt CR, so it could be used by kubevirt users.

* enabling the `NetworkBindingPlugins` kubevirt
feature-gate on kubevirt CR is not needed as it is already set by
default by HCO [1].

[0] https://github.com/kubevirt/community/pull/280
[1]
https://github.com/kubevirt/hyperconverged-cluster-operator/pull/2603

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

* docs/cluster-configuration: Add primaryUserDefinedNetworkBinding FG

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

---------

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

28 of 33 new or added lines in 2 files covered. (84.85%)

1 existing line in 1 file now uncovered.

5286 of 6156 relevant lines covered (85.87%)

0.95 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
48.84
-1.46% pkg/util/util.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
86.0
-0.67% controllers/operands/operandHandler.go
Jobs
ID Job ID Ran Files Coverage
1 10355354530.1 12 Aug 2024 04:07PM UTC 50
85.87
GitHub Action Run
Source Files on build 10355354530
  • Tree
  • List 50
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fc1c591c on github
  • Prev Build on main (#10348643643)
  • Next Build on main (#10359285503)
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