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

kubevirt / containerized-data-importer / #6308
50%

Build:
DEFAULT BRANCH: main
Ran 21 Oct 2026 03:06AM UTC
Jobs 1
Files 159
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

21 Oct 2026 02:51AM UTC coverage: 50.286% (+0.07%) from 50.213%
#6308

push

travis-ci

web-flow
CNV-97937 | Add external NBD support for VDDK imports (#4321)

* CNV-97937 | Add external NBD support for VDDK imports

Allow connecting to an external nbdkit via the
cdi.kubevirt.io/storage.import.vddk.nbdConnection annotation.

Signed-off-by: Martin Necas <mnecas@redhat.com>

* Add mutual TLS for external NBD VDDK imports

Mount the import secret at /nbd-certs for nbds:// URIs and configure
libnbd to require TLS with peer verification.

Resolves: None
Signed-off-by: Martin Necas <mnecas@redhat.com>

* vddk: switch base:allocation to libnbd.CONTEXT_BASE_ALLOCATION

Signed-off-by: Martin Necas <mnecas@redhat.com>

* vddk: add nbd and nbds validations

Signed-off-by: Martin Necas <mnecas@redhat.com>

* vddk: Harden nbds TLS secret mount and hostname verify

Use AnnVddkNbdTlsSecret to mount only PEM keys for nbds://, require that
annotation for VDDK NBD imports, verify TLS hostname, and ConnectUri for
both schemes. Surface invalid NBD config on Running with a warning event.
Drop SetTlsPriority and the importer crypto_policies_tar.

Signed-off-by: Martin Necas <mnecas@redhat.com>

* vddk: Disable SetTlsVerifyPeer for external nbd connection

Signed-off-by: Martin Necas <mnecas@redhat.com>

* vddk: Restore crypto-policies for nbds:// GnuTLS priority

el9 libnbd stubs SetTlsPriority as missing, so ignore that call and
ship crypto_policies_tar again so the default @SYSTEM GnuTLS priority
works in the importer image.

Signed-off-by: Martin Necas <mnecas@redhat.com>

* vddk: Keep peer verify for external nbds:// on el9

Drop SetTlsVerifyPeer(false) and SetTlsPriority (missing on libnbd 1.20);
require a SAN matching the nbds:// URI host. Document warm retargeting of
AnnVddkNbdConnection, check export size vs VMware capacity, and limit the
crypto-policies gnutls.config symlink to amd64 importer images.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Martin Necas <mnecas@redhat.com>

* vddk: add VDDK external nbd import tests

Signed-off-by: Mart... (continued)

72 of 132 new or added lines in 4 files covered. (54.55%)

5 existing lines in 2 files now uncovered.

15543 of 30909 relevant lines covered (50.29%)

0.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
52
59.07
-2.37% pkg/importer/vddk-datasource_amd64.go
4
70.59
-0.96% pkg/controller/populators/populator-base.go
2
0.0
0.0% cmd/cdi-importer/importer.go
2
74.45
2.64% pkg/controller/import-controller.go

Coverage Regressions

Lines Coverage ∆ File
3
59.07
-2.37% pkg/importer/vddk-datasource_amd64.go
2
85.71
0.0% pkg/util/prometheus/prometheus.go
Jobs
ID Job ID Ran Files Coverage
1 #6308.1 21 Oct 2026 03:05AM UTC 159
50.29
Source Files on build #6308
  • Tree
  • List 159
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • adefd1dc on github
  • Prev Build on main
  • Next Build on main
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc