Skip to content
callcount

kubevirt.io/kubevirt/pkg/apimachinery/patch.PatchSet.AddOption

third-party

The 4249th most-called third-party method by production calls. Called 162 times across 1 modules; 149 of those run outside tests and generated code.

No change in production calls since 2026-W48.

All of kubevirt.io/kubevirt/pkg/apimachinery/patch → Docs on pkg.go.dev ↗

prod calls
149
non-test, non-generated
all calls
162
total callsites
modules
1
distinct callers
in loop
7%
of prod calls
in tests
8%
13 calls
resolved
100%
to a known target

resolution mix

How each call resolves

How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →

  • Concrete method100%A method on a value whose type is known exactly.

where it's called

Callsites in the wild

12 representative callsites of 162, prioritizing in-loop and non-test usage. We link to source, never display it.

PatchSet.AddOption · 12 of 162 callsites
  • kubevirt.io/kubevirt @v1.10.0

    pkg/virt-controller/watch/clone/vm-target.go:76

    in loop
  • kubevirt.io/kubevirt @v1.10.0

    tests/infrastructure/virt-handler.go:82

    in loop
  • kubevirt.io/kubevirt @v1.10.0

    pkg/virt-api/webhooks/mutating-webhook/mutators/virt-launcher-pod-mutator.go:112

    in loop
  • kubevirt.io/kubevirt @v1.10.0

    pkg/virt-controller/watch/clone/vm-target.go:150

    in loop
  • kubevirt.io/kubevirt @v1.10.0

    pkg/virt-operator/resource/apply/delete.go:529

    in loop
  • kubevirt.io/kubevirt @v1.10.0

    pkg/controller/controller.go:585

    in loop
  • kubevirt.io/kubevirt @v1.10.0

    pkg/virt-operator/resource/apply/delete.go:671

    in loop
  • kubevirt.io/kubevirt @v1.10.0

    pkg/virt-operator/resource/apply/delete.go:676

    in loop
  • kubevirt.io/kubevirt @v1.10.0

    pkg/storage/snapshot/restore.go:831

    in loop
  • kubevirt.io/kubevirt @v1.10.0

    pkg/storage/snapshot/restore.go:841

    in loop
  • kubevirt.io/kubevirt @v1.10.0

    tests/libkubevirt/config/netbinding.go:40

  • kubevirt.io/kubevirt @v1.10.0

    tests/libkubevirt/config/netbinding.go:41

top callers

The modules that reach for it

The modules that call PatchSet.AddOption most in this snapshot.

  • kubevirt.io/kubevirt162100%

siblings

More from kubevirt.io/kubevirt/pkg/apimachinery/patch

The other most-called members in this package. See all →