k8s.io/apimachinery/pkg/util/sets.Set.Len
third-partyThe 5183rd most-called third-party method by production calls. Called 189 times across 30 modules; 117 of those run outside tests and generated code.
No change in production calls since 2026-W39.
All of k8s.io/apimachinery/pkg/util/sets → Docs on pkg.go.dev ↗
- prod calls
- 117
- non-test, non-generated
- all calls
- 189
- total callsites
- modules
- 30
- distinct callers
- in loop
- 17%
- of prod calls
- in tests
- 38%
- 72 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 →
- Concrete method100%A method on a value whose type is known exactly.
who calls this
Notable callers
Production calls into Set.Len from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 71 61%
- Cilium 15 13%
- Kyverno 4 3%
- Velero 4 3%
- Tailscale 1 <1%
where it's called
Callsites in the wild
12 representative callsites of 189, 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
-
k8s.io/ingress-nginx @v0.0.0-20260319212031-dbb11b92ddb7
internal/ingress/controller/store/objectref.go:71
in loop - in loop
- in loop
-
tailscale.com @v1.102.5
cmd/k8s-operator/egress-services.go:334
in loop -
kubernetes/ingress-nginx @v0.0.0-20260319212031-dbb11b92ddb7
in loop - in loop
- in loop
- in loop
-
k8s.io/apimachinery @v0.37.1
pkg/util/sort/sort.go:83
in loop
top callers
The modules that reach for it
The modules that call Set.Len most in this snapshot.
- github.com/rook/rook4222%
- k8s.io/apimachinery2513%
- github.com/cilium/cilium1910%
- k8s.io/apiserver1810%
- github.com/kyverno/kyverno116%
siblings
More from k8s.io/apimachinery/pkg/util/sets
The other most-called members in this package. See all →