k8s.io/client-go/dynamic.NewForConfig
third-partyThe 5086th most-called third-party function by production calls. Called 293 times across 32 modules; 119 of those run outside tests and generated code.
3% in production calls vs 2026-W39 (123 → 119)
- prod calls
- 119
- non-test, non-generated
- all calls
- 293
- total callsites
- modules
- 32
- distinct callers
- in loop
- 0%
- of prod calls
- in tests
- 59%
- 174 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 function3%A direct call to an exported package function, resolved by type.
- Package function (by syntax)97%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into NewForConfig from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 69 58%
- Argo 17 14%
- Kyverno 6 5%
- Velero 2 2%
- Flux 1 <1%
where it's called
Callsites in the wild
12 representative callsites of 293, prioritizing in-loop and non-test usage. We link to source, never display it.
-
kubernetes/kubernetes @master
staging/src/k8s.io/apiextensions-apiserver/test/integration/cbor_test.go:200 ↗
in loop test -
k8s.io/apiextensions-apiserver @v0.37.1
test/integration/cbor_test.go:200
in loop test - in loop test
-
k8s.io/client-go @v0.37.1
dynamic/golden_test.go:217
in loop test - in loop test
- in loop test
- in loop test
-
k8s.io/client-go @v0.37.1
dynamic/golden_test.go:358
in loop test - in loop test
-
k8s.io/kubernetes @v1.37.1
test/integration/apiserver/admissionwebhook/admission_test.go:673
in loop test -
k8s.io/kubernetes @v1.37.1
test/integration/apiserver/cel/mutatingadmissionpolicy_test.go:829
in loop test - in loop test
top callers
The modules that reach for it
The modules that call NewForConfig most in this snapshot.
- github.com/kubernetes/kubernetes11138%
- k8s.io/kubernetes7626%
- k8s.io/apiextensions-apiserver269%
- github.com/argoproj/gitops-engine93%
- k8s.io/client-go93%