Skip to content
callcount

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

third-party

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

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

prod calls
138
non-test, non-generated
all calls
151
total callsites
modules
1
distinct callers
in loop
7%
of prod calls
in tests
9%
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 151, prioritizing in-loop and non-test usage. We link to source, never display it.

PatchSet.AddOption · 12 of 151 callsites
  • kubevirt.io/kubevirt @v1.9.0

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

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

    tests/infrastructure/virt-handler.go:82

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

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

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

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

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

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

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

    pkg/controller/controller.go:579

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

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

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

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

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

    pkg/storage/snapshot/restore.go:793

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

    pkg/storage/snapshot/restore.go:803

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

    tests/libkubevirt/config/netbinding.go:40

  • kubevirt.io/kubevirt @v1.9.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/kubevirt151100%

siblings

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

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