k8s.io/apimachinery/pkg/api/errors.NewInvalid
third-partyThe 5518th most-called third-party function by production calls. Called 147 times across 15 modules; 107 of those run outside tests and generated code.
All of k8s.io/apimachinery/pkg/api/errors → Docs on pkg.go.dev ↗
- prod calls
- 107
- non-test, non-generated
- all calls
- 147
- total callsites
- modules
- 15
- distinct callers
- in loop
- 11%
- of prod calls
- in tests
- 27%
- 40 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 function46%A direct call to an exported package function, resolved by type.
- Package function (by syntax)54%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into NewInvalid from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 88 82%
- Velero 3 3%
where it's called
Callsites in the wild
12 representative callsites of 147, prioritizing in-loop and non-test usage. We link to source, never display it.
-
k8s.io/kubectl @v0.36.3
pkg/cmd/util/editor/editoptions.go:323
in loop - in loop
- in loop
-
k8s.io/kubernetes @v1.36.3
pkg/registry/core/service/storage/alloc.go:420
in loop - in loop
-
k8s.io/kubernetes @v1.36.3
pkg/registry/core/service/storage/alloc.go:444
in loop -
k8s.io/kubernetes @v1.36.3
pkg/registry/core/service/storage/alloc.go:536
in loop - in loop
-
k8s.io/kubernetes @v1.36.3
pkg/registry/core/service/storage/alloc.go:561
in loop - in loop
- in loop
-
k8s.io/kubernetes @v1.36.3
pkg/registry/core/service/storage/alloc.go:824
in loop
top callers
The modules that reach for it
The modules that call NewInvalid most in this snapshot.
- github.com/kubernetes/kubernetes5638%
- k8s.io/kubernetes2416%
- k8s.io/apiserver2114%
- github.com/cloudnative-pg/cloudnative-pg117%
- k8s.io/kubectl107%
siblings
More from k8s.io/apimachinery/pkg/api/errors
The other most-called functions in this package. See all →