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

kubevirt / containerized-data-importer / #6403
51%

Build:
DEFAULT BRANCH: main
Ran 02 Dec 2026 02:34PM UTC
Jobs 1
Files 162
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

02 Dec 2026 02:20PM UTC coverage: 51.102% (+0.2%) from 50.948%
#6403

push

travis-ci

web-flow
refactor: switch node-pull to image volume (#4237)

* feat(registry-datasource): detect bootc images

Copy isBootcImage() from cdi-containerimage-server so the registry
datasource can reject bootc/ostree images when pulling via the node,
mirroring the check added in #4223.

Signed-off-by: Aviv Neta <avneta@redhat.com>

* refactor(registry-datasource): add basePath to isBootcImage

Signed-off-by: Aviv Neta <avneta@redhat.com>

* refactor(registry-datasource): split Transfer into helpers

Signed-off-by: Aviv Neta <avneta@redhat.com>

* feat(scc): allow image volumes in the CDI SCC

Node-pull registry imports will mount the source image as an
ImageVolume[0]. Without the `image` volume type in the CDI SCC, SCC
admission on OpenShift rejects the importer pod.

Signed-off-by: Aviv Neta <avneta@redhat.com>

* refactor(importer): use ImageVolume for registry node-pull imports

Node-pull registry imports previously ran an init container to copy
cdi-containerimage-server into a shared emptyDir, alongside a container that
served the disk over HTTP to the importer.

The refactored code mounts the source image directly as an ImageVolume[0] at /image
and have RegistryDataSource read the disk from IMPORTER_IMAGE_ROOT_DIR.
This removes the init container, the sidecar, the ready/done file handshake
and the cdi-containerimage-server tool.

[0]: https://kubernetes.io/docs/tasks/configure-pod-container/image-volumes

Signed-off-by: Aviv Neta <avneta@redhat.com>

* test: update unit tests for ImageVolume node-pull imports

Signed-off-by: Aviv Neta <avneta@redhat.com>

* feat(importer): label node-pull PVCs from source image ENV

An ImageVolume exposes only the image filesystem, not its config, so
node-pull imports can no longer read the image ENV used to add
*_KUBEVIRT_IO_ labels to the PVC[0].

Add cdi-env-extractor, a static binary that an init container copies
into a shared emptyDir. A second init container runs it inside the
source image and writes its environment to ... (continued)

103 of 118 new or added lines in 7 files covered. (87.29%)

15972 of 31255 relevant lines covered (51.1%)

0.57 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
0.0
0.0% cmd/cdi-importer/importer.go
5
87.31
0.04% pkg/controller/util.go
4
76.09
2.66% pkg/importer/registry-datasource.go
Jobs
ID Job ID Ran Files Coverage
1 #6403.1 02 Dec 2026 02:34PM UTC 162
51.1
Source Files on build #6403
  • Tree
  • List 162
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d333d8aa on github
  • Prev 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