k8s.io/apimachinery/pkg/labels.NewRequirement
third-partyThe 7109th most-called third-party function by production calls. Called 102 times across 25 modules; 83 of those run outside tests and generated code.
All of k8s.io/apimachinery/pkg/labels → Docs on pkg.go.dev ↗
- prod calls
- 83
- non-test, non-generated
- all calls
- 102
- total callsites
- modules
- 25
- distinct callers
- in loop
- 34%
- of prod calls
- in tests
- 19%
- 19 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 function63%A direct call to an exported package function, resolved by type.
- Package function (by syntax)37%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into NewRequirement from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 24 29%
- Istio 12 14%
- Kyverno 8 10%
- Argo 7 8%
- Cilium 3 4%
where it's called
Callsites in the wild
12 representative callsites of 102, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
kubesphere/kubesphere @v0.0.0-20260715011438-04a29b5c6014
in loop - in loop
-
istio.io/istio @v0.0.0-20260804075250-35fae141dc60
pkg/config/mesh/labelselector/labelselector.go:43
in loop - in loop
- in loop
-
kubevirt.io/kubevirt @v1.9.0
pkg/virt-controller/watch/pool/pool.go:2075
in loop -
istio/istio @v0.0.0-20260804075250-35fae141dc60
in loop -
k8s.io/apimachinery @v0.36.3
pkg/apis/meta/v1/helpers.go:45
in loop - in loop
-
istio.io/istio @v0.0.0-20260804075250-35fae141dc60
pkg/config/mesh/labelselector/labelselector.go:63
in loop -
k8s.io/apimachinery @v0.36.3
pkg/apis/meta/v1/helpers.go:65
in loop
top callers
The modules that reach for it
The modules that call NewRequirement most in this snapshot.
- github.com/kubernetes/kubernetes1717%
- k8s.io/kubernetes1010%
- github.com/kyverno/kyverno88%
- k8s.io/apimachinery88%
- github.com/cert-manager/cert-manager77%
siblings
More from k8s.io/apimachinery/pkg/labels
The other most-called functions in this package. See all →