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

kubevirt / containerized-data-importer / #5219
59%
main: 49%

Build:
Build:
LAST BUILD BRANCH: status-imports-to-keep
DEFAULT BRANCH: main
Ran 09 Apr 2025 11:36AM 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

09 Apr 2025 11:30AM UTC coverage: 59.339% (-0.005%) from 59.344%
#5219

Pull #3692

travis-ci

Acedus
Fix cdi-deployment Deployment selector

The cdi-deployment selector has a matchLabels value of {"app":
"containerized-data-importer"} which is a common label that appears on
many CDI related Pods (e.g., cdi-apiserver, cdi-uploadproxy, importer,
etc.).

This causes certain functionalities such as the log subresource to
misbehave as it targets the first Pod of the Pod list according to the
kubectl ByLogging sorting conditions[1].

This commit changes the cdi-deployment selector to the common
"cdi.kubevirt.io" with the value "cdi-deployment".

Since deployment selectors are immutable[2], it also adds a reconcile
callback to delete the cdi-deployment Deployment in the event of
detecting a selector that differs from the operator's desired one.

[1] https://github.com/kubernetes/kubectl/blob/fec9d5b3d/pkg/util/podutils/podutils.go#L96
[2] https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#selector

Signed-off-by: Adi Aloni <aaloni@redhat.com>
Pull Request #3692: Fix cdi-deployment Deployment selector

24 of 34 new or added lines in 2 files covered. (70.59%)

6 existing lines in 2 files now uncovered.

16822 of 28349 relevant lines covered (59.34%)

0.66 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
52.6
1.77% pkg/operator/controller/callbacks.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
61.37
-0.26% pkg/importer/vddk-datasource_amd64.go
4
74.58
-1.12% pkg/importer/http-datasource.go
Jobs
ID Job ID Ran Files Coverage
1 #5219.1 09 Apr 2025 11:36AM UTC 155
59.34
Source Files on build #5219
  • Tree
  • List 155
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #3692
  • PR Base - 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

© 2026 Coveralls, Inc