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

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

Build:
DEFAULT BRANCH: main
Ran 10 Nov 2026 05:55PM 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

10 Nov 2026 05:42PM UTC coverage: 50.355% (+0.06%) from 50.294%
#6349

push

travis-ci

web-flow
feat(tls): allow controlling which key exchange groups CDI's TLS servers accept (#4332)

* fix(tls): avoid possible panic in CDIConfig delete handler

OnDelete does not always receive the typed object. When the watch is
closed and the delete event is missed, the informer delivers a
cache.DeletedFinalStateUnknown instead [0], so the unchecked
obj.(*cdiv1.CDIConfig) assertion could panic.

The handler only logs, and the informer is field-selected to the single
"config" object, so drop the assertion and the name from the message.

While here, replace interface{} with any in the event handlers.

[0] https://github.com/kubevirt/containerized-data-importer/blob/<a class=hub.com/kubevirt/containerized-data-importer/commit/b2bd873d7705d38b6774d104860ee86144467ed0">b2bd873d7/vendor/k8s.io/client-go/tools/cache/controller.go#L220-L224

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

* fix(apiserver): avoid possible panic in AuthConfig delete handler

OnDelete does not always receive the typed object. When the watch is
closed and the delete event is missed, the informer delivers a
cache.DeletedFinalStateUnknown instead [0], so the unchecked
obj.(*corev1.ConfigMap) assertion could panic.

The handler only logs, and the informer is field-selected to the single
"extension-apiserver-authentication" ConfigMap, so drop the assertion
and the name from the message.

While here, replace interface{} with any in the event handlers and use
slices.Contains in ValidateName.

[0] https://github.com/kubevirt/containerized-data-importer/blob/b2bd873d7705d38b6774d104860ee86144467ed0/vendor/k8s.io/client-go/tools/cache/controller.go#L220-L224

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

* fix(tls): fall back to Intermediate for unknown TLS profile types

SelectCipherSuitesAndMinTLSVersion indexed cdiv1.TLSProfiles by
profile.Type without checking the result. If the type was missing from
the map (empty, or Custom without a custom spec), it dereferenced a nil
*TLSProfileSpec and panicked (for more info check the unit tests in the
last commit where it wa... (continued)

49 of 77 new or added lines in 9 files covered. (63.64%)

2 existing lines in 2 files now uncovered.

15588 of 30956 relevant lines covered (50.36%)

0.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
18.07
18.07% pkg/util/tls-crypto-watch/tls-crypto-watch.go
7
0.0
0.0% cmd/cdi-uploadserver/uploadserver.go
4
42.39
-0.18% pkg/uploadproxy/uploadproxy.go
2
86.36
0.81% pkg/apiserver/auth-config.go
1
0.0
0.0% cmd/cdi-controller/controller.go
1
0.0
0.0% cmd/cdi-operator/operator.go

Coverage Regressions

Lines Coverage ∆ File
1
86.36
0.81% pkg/apiserver/auth-config.go
1
18.07
18.07% pkg/util/tls-crypto-watch/tls-crypto-watch.go
Jobs
ID Job ID Ran Files Coverage
1 #6349.1 10 Nov 2026 05:55PM UTC 159
50.36
Source Files on build #6349
  • Tree
  • List 159
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 82390893 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