k8s.io/apimachinery/pkg/util/validation/field.TooLong
third-partyThe 5369th most-called third-party function by production calls. Called 312 times across 8 modules; 111 of those run outside tests and generated code.
No change in production calls since 2026-W37.
All of k8s.io/apimachinery/pkg/util/validation/field → Docs on pkg.go.dev ↗
- prod calls
- 111
- non-test, non-generated
- all calls
- 312
- total callsites
- modules
- 8
- distinct callers
- in loop
- 5%
- of prod calls
- in tests
- 64%
- 201 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 function19%A direct call to an exported package function, resolved by type.
- Package function (by syntax)81%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into TooLong from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 106 95%
- Cilium 3 3%
- Kyverno 1 <1%
where it's called
Callsites in the wild
12 representative callsites of 312, prioritizing in-loop and non-test usage. We link to source, never display it.
-
kubernetes/kubernetes @master
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/validation.go:166 ↗
in loop -
k8s.io/apiextensions-apiserver @v0.37.0
pkg/apiserver/validation/validation.go:197
in loop -
k8s.io/apimachinery @v0.37.0
pkg/apis/meta/v1/validation/validation.go:311
in loop -
kubernetes/kubernetes @master
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation.go:311 ↗
in loop -
k8s.io/kubernetes @v1.37.0
pkg/apis/core/validation/validation.go:9954
in loop - in loop
-
k8s.io/kubernetes @v1.37.0
test/declarative_validation/core/persistentvolumeclaim/declarative_validation_test.go:112
in loop test -
kubernetes/kubernetes @master
test/declarative_validation/core/persistentvolumeclaim/declarative_validation_test.go:112 ↗
in loop test -
k8s.io/kubernetes @v1.37.0
test/declarative_validation/core/persistentvolumeclaim/declarative_validation_test.go:116
in loop test -
kubernetes/kubernetes @master
test/declarative_validation/core/persistentvolumeclaim/declarative_validation_test.go:116 ↗
in loop test -
k8s.io/kubernetes @v1.37.0
test/declarative_validation/resource/deviceclass/declarative_validation_test.go:124
in loop test -
kubernetes/kubernetes @master
test/declarative_validation/resource/deviceclass/declarative_validation_test.go:124 ↗
in loop test
top callers
The modules that reach for it
The modules that call TooLong most in this snapshot.
- github.com/kubernetes/kubernetes16453%
- k8s.io/kubernetes9029%
- k8s.io/code-generator268%
- k8s.io/apimachinery248%
- github.com/cert-manager/cert-manager3<1%
siblings
More from k8s.io/apimachinery/pkg/util/validation/field
The other most-called functions in this package. See all →