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

kubevirt / containerized-data-importer / #5391
49%

Build:
DEFAULT BRANCH: main
Ran 19 Jun 2025 11:49PM UTC
Jobs 1
Files 155
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

19 Jun 2025 11:38PM UTC coverage: 59.415% (+0.006%) from 59.409%
#5391

push

travis-ci

web-flow
VEP48: Support architecture specific image import for registry datasource (#3753)

* importer: introduce registry datasource architecture option

This commit introduces preliminary support for a new optional field under the
DV registry source.

The field, platform, has an additional subfield: architecture which
when specified serves as an image index filter to extract a
disk.img only from layers which match it.

If there's a mismatch between requested architecture and
available architectures in the image index the import will fail.

If the requested image is a manifest and not an index the architecture
of the manifest will be compared to the requested architecture and if
they mismatch the import will fail.

API naming has been chosen to mimic the OCI image index spec[1].

[1] https://github.com/opencontainers/image-spec/blob/main/image-index.md#oci-image-index-specification

Signed-off-by: Adi Aloni <aaloni@redhat.com>

* importer: pullMethod node architecture support

This commit adds support for specifying architecture for the registry
data source with pullMethod node. When configured, the importer Pod will
gain another NodeSelector for nodes that have the matching architecture
label.

In the event that the importer Pod is unschedulable due to the
pullMethod node's node selector, the condition will be propagated to the
DV's running condition until it becomes schedulable.

Signed-off-by: Adi Aloni <aaloni@redhat.com>

* docs, image-from-registry: add multi-platform support

Adds a section in the docs about using the platform field for
multi-platform image pull.

Signed-off-by: Adi Aloni <aaloni@redhat.com>

---------

Signed-off-by: Adi Aloni <aaloni@redhat.com>

42 of 61 new or added lines in 6 files covered. (68.85%)

4 existing lines in 1 file now uncovered.

16950 of 28528 relevant lines covered (59.42%)

0.66 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
99.19
-0.81% pkg/controller/datavolume/conditions.go
2
0.0
0.0% cmd/cdi-importer/importer.go
3
14.12
-0.03% pkg/controller/common/util.go
3
73.87
3.15% pkg/importer/transport.go
10
71.4
-0.43% pkg/controller/import-controller.go

Uncovered Existing Lines

Lines Coverage ∆ File
4
75.53
-1.06% pkg/importer/http-datasource.go
Jobs
ID Job ID Ran Files Coverage
1 #5391.1 19 Jun 2025 11:49PM UTC 155
59.42
Source Files on build #5391
  • Tree
  • List 155
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b6b74687 on github
  • Prev Build on main
  • Next Build on main
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

© 2025 Coveralls, Inc