k8s.io/apimachinery/pkg/fields.SelectorFromSet
third-partyThe 5339th most-called third-party function by production calls. Called 215 times across 18 modules; 117 of those run outside tests and generated code.
No change in production calls since 2026-W48.
All of k8s.io/apimachinery/pkg/fields → Docs on pkg.go.dev ↗
- prod calls
- 117
- non-test, non-generated
- all calls
- 215
- total callsites
- modules
- 18
- distinct callers
- in loop
- 9%
- of prod calls
- in tests
- 46%
- 98 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 function36%A direct call to an exported package function, resolved by type.
- Package function (by syntax)64%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into SelectorFromSet from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 98 84%
- Argo 10 9%
- Tailscale 1 <1%
where it's called
Callsites in the wild
12 representative callsites of 215, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
k8s.io/kubernetes @v1.37.3
test/e2e/apimachinery/protocol.go:68
in loop -
k8s.io/apiserver @v0.37.3
pkg/storage/testing/store_benchmarks.go:249
in loop -
kubernetes/kubernetes @master
staging/src/k8s.io/apiserver/pkg/storage/testing/store_benchmarks.go:311 ↗
in loop -
k8s.io/apiserver @v0.37.3
pkg/storage/testing/store_benchmarks.go:312
in loop -
k8s.io/apiserver @v0.37.3
pkg/storage/testing/store_benchmarks.go:344
in loop -
kubernetes/kubernetes @master
staging/src/k8s.io/apiserver/pkg/storage/testing/store_benchmarks.go:374 ↗
in loop -
kubernetes/kubernetes @master
staging/src/k8s.io/apiserver/pkg/storage/testing/store_benchmarks.go:406 ↗
in loop -
k8s.io/apiserver @v0.37.3
pkg/storage/testing/store_benchmarks.go:468
in loop -
kubernetes/kubernetes @master
staging/src/k8s.io/apiserver/pkg/storage/testing/store_benchmarks.go:527 ↗
in loop -
-
google/gvisor @v0.0.0-20261130174204-4c7ed132a44d
top callers
The modules that reach for it
The modules that call SelectorFromSet most in this snapshot.
- github.com/kubernetes/kubernetes11754%
- k8s.io/apiserver2913%
- sigs.k8s.io/controller-runtime199%
- github.com/prometheus-operator/prometheus-operator115%
- k8s.io/kubernetes94%
siblings
More from k8s.io/apimachinery/pkg/fields
The other most-called functions in this package. See all →