k8s.io/apimachinery/pkg/runtime.Decode
third-partyThe 7666th most-called third-party function by production calls. Called 247 times across 16 modules; 77 of those run outside tests and generated code.
All of k8s.io/apimachinery/pkg/runtime → Docs on pkg.go.dev ↗
- prod calls
- 77
- non-test, non-generated
- all calls
- 247
- total callsites
- modules
- 16
- distinct callers
- in loop
- 8%
- of prod calls
- in tests
- 69%
- 170 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 →
- Package function30%A direct call to an exported package function, resolved by type.
- Package function (by syntax)70%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into Decode from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 64 83%
- KubeVirt 3 4%
- Istio 2 3%
where it's called
Callsites in the wild
12 representative callsites of 247, prioritizing in-loop and non-test usage. We link to source, never display it.
-
derailed/k9s @v0.51.0
in loop -
k8s.io/apimachinery @v0.36.3
pkg/runtime/codec_check.go:44
in loop -
k8s.io/kubectl @v0.36.3
pkg/cmd/get/table_printer.go:82
in loop - in loop
- in loop
-
k8s.io/apimachinery @v0.36.3
pkg/runtime/helper.go:133
in loop -
kubernetes/kubernetes @master
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/bench_test.go:97 ↗
in loop test -
k8s.io/apiserver @v0.36.3
pkg/endpoints/handlers/fieldmanager/bench_test.go:97
in loop test -
k8s.io/apiserver @v0.36.3
pkg/endpoints/handlers/fieldmanager/bench_test.go:200
in loop test -
kubernetes/kubernetes @master
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/bench_test.go:200 ↗
in loop test -
k8s.io/kubernetes @v1.36.3
pkg/api/testing/serialization_proto_test.go:220
in loop test - in loop test
top callers
The modules that reach for it
The modules that call Decode most in this snapshot.
- github.com/kubernetes/kubernetes10643%
- k8s.io/kubernetes4317%
- k8s.io/apimachinery2410%
- k8s.io/apiserver208%
- github.com/kubevirt/kubevirt114%
siblings
More from k8s.io/apimachinery/pkg/runtime
The other most-called functions in this package. See all →