k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorAsSelector
third-partyThe 1324th most-called third-party function by production calls. Called 627 times across 40 modules; 471 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (468 → 471)
All of k8s.io/apimachinery/pkg/apis/meta/v1 → Docs on pkg.go.dev ↗
- prod calls
- 471
- non-test, non-generated
- all calls
- 627
- total callsites
- modules
- 40
- distinct callers
- in loop
- 25%
- of prod calls
- in tests
- 25%
- 156 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 function<1%A direct call to an exported package function, resolved by type.
- Package function (by syntax)100%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into LabelSelectorAsSelector from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 246 52%
- Longhorn 34 7%
- Istio 28 6%
- KubeVirt 17 4%
- Helm 15 3%
where it's called
Callsites in the wild
12 representative callsites of 627, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
- in loop
-
kubesphere/kubesphere @v0.0.0-20260715011438-04a29b5c6014
in loop - in loop
- in loop
- in loop
-
istio/istio @v0.0.0-20260921104621-5b6314c52361
in loop -
knative.dev/pkg @v0.0.0-20260918182429-5dc1978f0042
webhook/psbinding/psbinding.go:279
in loop - in loop
-
kubevirt.io/kubevirt @v1.9.0
pkg/virt-api/webhooks/mutating-webhook/mutators/preset.go:57
in loop
top callers
The modules that reach for it
The modules that call LabelSelectorAsSelector most in this snapshot.
- github.com/kubernetes/kubernetes18129%
- k8s.io/kubernetes12420%
- github.com/longhorn/longhorn-manager345%
- github.com/prometheus-operator/prometheus-operator254%
- k8s.io/kubectl234%
siblings
More from k8s.io/apimachinery/pkg/apis/meta/v1
The other most-called functions in this package. See all →