k8s.io/apimachinery/pkg/apis/meta/v1/unstructured.Unstructured.GetAPIVersion
third-partyThe 5519th most-called third-party method by production calls. Called 160 times across 22 modules; 108 of those run outside tests and generated code.
No change in production calls since 2026-W37.
All of k8s.io/apimachinery/pkg/apis/meta/v1/unstructured → Docs on pkg.go.dev ↗
- prod calls
- 108
- non-test, non-generated
- all calls
- 160
- total callsites
- modules
- 22
- distinct callers
- in loop
- 40%
- of prod calls
- in tests
- 33%
- 52 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 method99%A method on a value whose type is known exactly.
- Embedded method1%Reached through an embedded type.
who calls this
Notable callers
Production calls into Unstructured.GetAPIVersion from notable Go projects. Open one on the map to see what else it hammers.
- Kyverno 63 58%
- Kubernetes 17 16%
- Istio 4 4%
- Velero 2 2%
- Flux 1 <1%
where it's called
Callsites in the wild
12 representative callsites of 160, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
kubesphere/kubesphere @v0.0.0-20260715011438-04a29b5c6014
in loop - in loop
-
k8s.io/apiextensions-apiserver @v0.37.0
pkg/apiserver/conversion/webhook_converter.go:132
in loop -
kyverno/kyverno @v1.19.1
in loop - in loop
- in loop
-
kubesphere/kubesphere @v0.0.0-20260715011438-04a29b5c6014
in loop -
kyverno/kyverno @v1.19.1
in loop -
k8s.io/apiextensions-apiserver @v0.37.0
pkg/apiserver/conversion/webhook_converter.go:308
in loop - in loop
-
k8s.io/apimachinery @v0.37.0
pkg/apis/meta/v1/unstructured/helpers.go:505
in loop
top callers
The modules that reach for it
The modules that call Unstructured.GetAPIVersion most in this snapshot.
- github.com/kyverno/kyverno6843%
- k8s.io/apiextensions-apiserver3220%
- github.com/crossplane/crossplane106%
- sigs.k8s.io/controller-runtime85%
- github.com/kubernetes-sigs/external-dns53%
siblings
More from k8s.io/apimachinery/pkg/apis/meta/v1/unstructured
The other most-called members in this package. See all →