k8s.io/apimachinery/pkg/labels.Selector.Matches
third-partyThe 4113th most-called third-party method by production calls. Called 195 times across 31 modules; 146 of those run outside tests and generated code.
2% in production calls vs 2026-W37 (143 → 146)
All of k8s.io/apimachinery/pkg/labels → Docs on pkg.go.dev ↗
- prod calls
- 146
- non-test, non-generated
- all calls
- 195
- total callsites
- modules
- 31
- distinct callers
- in loop
- 66%
- of prod calls
- in tests
- 25%
- 49 calls
- resolved
- 0%
- 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 →
- Interface method100%Called through an interface. The runtime target may differ.
who calls this
Notable callers
Production calls into Selector.Matches from notable Go projects. Open one on the map to see what else it hammers.
- Istio 52 36%
- Kubernetes 43 29%
- Velero 13 9%
- Kyverno 2 1%
- Cilium 1 <1%
where it's called
Callsites in the wild
12 representative callsites of 195, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
kubesphere/kubesphere @v0.0.0-20260715011438-04a29b5c6014
in loop - in loop
- in loop
- in loop
- in loop
-
helm/v4 @v4.3.0
pkg/action/list.go:292
in loop -
istio.io/istio @v0.0.0-20260921104621-5b6314c52361
pkg/config/analysis/analyzers/gateway/conflictinggateway.go:85
in loop -
knative.dev/pkg @v0.0.0-20260918182429-5dc1978f0042
webhook/psbinding/index.go:80
in loop -
sigs.k8s.io/external-dns @v0.23.0
source/annotations/filter.go:35
in loop - in loop
top callers
The modules that reach for it
The modules that call Selector.Matches most in this snapshot.
- istio.io/istio2915%
- github.com/istio/istio2714%
- github.com/vmware-tanzu/velero2613%
- github.com/velero-io/velero2412%
- k8s.io/client-go147%
siblings
More from k8s.io/apimachinery/pkg/labels
The other most-called members in this package. See all →