k8s.io/apimachinery/pkg/api/meta.RESTMapper.RESTMapping
third-partyThe 7389th most-called third-party method by production calls. Called 111 times across 19 modules; 80 of those run outside tests and generated code.
All of k8s.io/apimachinery/pkg/api/meta → Docs on pkg.go.dev ↗
- prod calls
- 80
- non-test, non-generated
- all calls
- 111
- total callsites
- modules
- 19
- distinct callers
- in loop
- 25%
- of prod calls
- in tests
- 28%
- 31 calls
- resolved
- 0%
- 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 →
- Interface method100%Called through an interface. The runtime target may differ.
who calls this
Notable callers
Production calls into RESTMapper.RESTMapping from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 48 60%
- Kyverno 18 23%
- Istio 2 3%
- Velero 2 3%
where it's called
Callsites in the wild
12 representative callsites of 111, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
kubesphere/kubesphere @v0.0.0-20260715011438-04a29b5c6014
pkg/controller/k8sapplication/k8sapplication_controller.go:201 ↗
in loop -
k8s.io/apimachinery @v0.36.3
pkg/api/meta/firsthit_restmapper.go:72
in loop - in loop
-
k8s.io/kubectl @v0.36.3
pkg/util/prune/prune.go:76
in loop - in loop
-
sigs.k8s.io/cli-utils @v0.37.2
pkg/kstatus/polling/engine/engine.go:89
in loop - in loop
-
k8s.io/kubectl @v0.36.3
pkg/util/prune/prune.go:101
in loop - in loop
-
k8s.io/apimachinery @v0.36.3
pkg/api/meta/multirestmapper.go:159
in loop - in loop
top callers
The modules that reach for it
The modules that call RESTMapper.RESTMapping most in this snapshot.
- sigs.k8s.io/controller-runtime3431%
- sigs.k8s.io/cli-utils2119%
- github.com/kyverno/kyverno1816%
- k8s.io/kubectl76%
- k8s.io/cli-runtime55%
siblings
More from k8s.io/apimachinery/pkg/api/meta
The other most-called members in this package. See all →