k8s.io/apimachinery/pkg/runtime.Encode
third-partyThe 3175th most-called third-party function by production calls. Called 538 times across 21 modules; 186 of those run outside tests and generated code.
All of k8s.io/apimachinery/pkg/runtime → Docs on pkg.go.dev ↗
- prod calls
- 186
- non-test, non-generated
- all calls
- 538
- total callsites
- modules
- 21
- distinct callers
- in loop
- 3%
- of prod calls
- in tests
- 65%
- 352 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 function41%A direct call to an exported package function, resolved by type.
- Package function (by syntax)59%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into Encode from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 171 92%
- Istio 6 3%
- Helm 1 <1%
- Kyverno 1 <1%
where it's called
Callsites in the wild
12 representative callsites of 538, prioritizing in-loop and non-test usage. We link to source, never display it.
-
k8s.io/apimachinery @v0.36.3
pkg/runtime/helper.go:119
in loop - in loop
-
k8s.io/kubernetes @v1.36.3
pkg/kubectl/cmd/convert/convert.go:247
in loop -
kubernetes/kubernetes @master
staging/src/k8s.io/dynamic-resource-allocation/kubeletplugin/metadata.go:328 ↗
in loop -
k8s.io/apiserver @v0.36.3
pkg/storage/etcd3/store.go:547
in loop - in loop
- in loop test
-
k8s.io/client-go @v0.36.3
rest/watch/decoder_test.go:57
in loop test - in loop test
- in loop test
-
k8s.io/kubernetes @v1.36.3
test/integration/servicecidr/startup_race_test.go:78
in loop test - in loop test
top callers
The modules that reach for it
The modules that call Encode most in this snapshot.
- github.com/kubernetes/kubernetes24245%
- k8s.io/kubernetes7414%
- k8s.io/kubectl5210%
- k8s.io/apiserver509%
- k8s.io/apimachinery336%
siblings
More from k8s.io/apimachinery/pkg/runtime
The other most-called functions in this package. See all →