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

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

Build:
Build:
LAST BUILD BRANCH: mtv-4437
DEFAULT BRANCH: main
Ran 24 Feb 2026 05:24PM 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 05:09PM UTC coverage: 49.418%. First build
#5833

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>
Pull Request #4046: Use an uncached client for webhooks, cache only PVs with transform

3 of 63 new or added lines in 4 files covered. (4.76%)

14723 of 29793 relevant lines covered (49.42%)

0.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
72.47
pkg/controller/datavolume/util.go
58
0.0
cmd/cdi-apiserver/apiserver.go
Jobs
ID Job ID Ran Files Coverage
1 #5833.1 24 Feb 2026 05:24PM UTC 157
49.42
Source Files on build #5833
  • Tree
  • List 157
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #4046
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