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

kubevirt / containerized-data-importer / #5837
49%
main: 49%

Build:
Build:
LAST BUILD BRANCH: mtv-4437
DEFAULT BRANCH: main
Ran 24 Feb 2026 08:07PM UTC
Jobs 1
Files 157
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

24 Feb 2026 07:57PM UTC coverage: 49.387% (-0.05%) from 49.44%
#5837

Pull #4046

travis-ci

akalenyu
Use an uncached client for webhooks, cache only PVs with transform

Using a cached client for webhooks was never a great idea, with stale
entries being somewhat dangerous or plain and simply blocking. For
example:

  #!/bin/bash
  kubectl create -f source-pvc.yaml
  kubectl wait --for=condition=Bound pvc/source-pvc --timeout=60s
  # clone target PVC goes through the mutating webhook which needs
  # to read the source PVC and StorageProfile to render defaults;
  # a stale cache may not see them yet, resulting in a rejection.
  kubectl create -f clone-target-pvc.yaml

The cost of using an uncached client is low, since the only verb we
act on is CREATE.

PersistentVolumes are the exception — they can be numerous with large
specs, and renderPvcSpecFromAvailablePv relies on a field index that
requires a cache. A dedicated PV-only cache with a transform function
is used to keep only the fields needed by the webhook (StorageClassName,
Capacity, AccessModes, VolumeMode, Phase).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
Pull Request #4046: Use an uncached client for webhooks, cache only PVs with transform

3 of 64 new or added lines in 4 files covered. (4.69%)

3 existing lines in 2 files now uncovered.

14715 of 29795 relevant lines covered (49.39%)

0.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
72.76
0.73% pkg/controller/datavolume/util.go
59
0.0
0.0% cmd/cdi-apiserver/apiserver.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
72.76
0.73% pkg/controller/datavolume/util.go
2
0.0
0.0% cmd/cdi-apiserver/apiserver.go
Jobs
ID Job ID Ran Files Coverage
1 #5837.1 24 Feb 2026 08:07PM UTC 157
49.39
Source Files on build #5837
  • Tree
  • List 157
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #4046
  • 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