k8s.io/apimachinery/pkg/apis/meta/v1.Object.GetNamespace
third-partyThe 4054th most-called third-party method by production calls. Called 180 times across 23 modules; 156 of those run outside tests and generated code.
No change in production calls since 2026-W48.
All of k8s.io/apimachinery/pkg/apis/meta/v1 → Docs on pkg.go.dev ↗
- prod calls
- 156
- non-test, non-generated
- all calls
- 180
- total callsites
- modules
- 23
- distinct callers
- in loop
- 17%
- of prod calls
- in tests
- 13%
- 24 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 Object.GetNamespace from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 84 54%
- Velero 16 10%
- Cilium 15 10%
- Kyverno 3 2%
- SPIFFE 2 1%
where it's called
Callsites in the wild
12 representative callsites of 180, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
- in loop
-
k8s.io/client-go @v0.37.3
tools/cache/listers.go:84
in loop - in loop
- in loop
- in loop
- in loop
- in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call Object.GetNamespace most in this snapshot.
- k8s.io/apiserver2916%
- github.com/kubernetes/client-go1810%
- k8s.io/client-go1810%
- github.com/velero-io/velero169%
- github.com/vmware-tanzu/velero169%
siblings
More from k8s.io/apimachinery/pkg/apis/meta/v1
The other most-called members in this package. See all →