k8s.io/client-go/kubernetes.NewForConfig
third-partyThe 1363rd most-called third-party function by production calls. Called 963 times across 87 modules; 456 of those run outside tests and generated code.
0% in production calls vs 2026-W37 (455 → 456)
- prod calls
- 456
- non-test, non-generated
- all calls
- 963
- total callsites
- modules
- 87
- distinct callers
- in loop
- 1%
- of prod calls
- in tests
- 53%
- 506 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 function1%A direct call to an exported package function, resolved by type.
- Package function (by syntax)99%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 190 42%
- Argo 34 7%
- Istio 10 2%
- Longhorn 9 2%
- Grafana 7 2%
where it's called
Callsites in the wild
12 representative callsites of 963, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
google/gvisor @v0.0.0-20260919054224-26f3455a4cb9
in loop - in loop
- in loop
-
rook/rook @v1.20.7
in loop - in loop
-
k8s.io/kubernetes @v1.37.0
test/integration/apiserver/unstructured_test.go:57
in loop test - in loop test
-
k8s.io/kubernetes @v1.37.0
test/integration/dualstack/dualstack_test.go:72
in loop test -
k8s.io/kubernetes @v1.37.0
test/integration/servicecidr/allocator_test.go:83
in loop test - in loop test
-
k8s.io/kubernetes @v1.37.0
test/integration/apiserver/admissionwebhook/exclusion_test.go:89
in loop test
top callers
The modules that reach for it
The modules that call NewForConfig most in this snapshot.
- github.com/kubernetes/kubernetes32434%
- k8s.io/kubernetes28930%
- github.com/loft-sh/vcluster586%
- github.com/argoproj/argo-cd/v3162%
- github.com/crossplane/crossplane131%
siblings
More from k8s.io/client-go/kubernetes
The other most-called functions in this package. See all →