k8s.io/kubernetes/pkg/apis/rbac/v1.NewRule
third-partyThe 1024th most-called third-party function by production calls. Called 685 times across 2 modules; 637 of those run outside tests and generated code.
All of k8s.io/kubernetes/pkg/apis/rbac/v1 → Docs on pkg.go.dev ↗
- prod calls
- 637
- non-test, non-generated
- all calls
- 685
- total callsites
- modules
- 2
- distinct callers
- in loop
- 0%
- of prod calls
- in tests
- 7%
- 48 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 function49%A direct call to an exported package function, resolved by type.
- Package function (by syntax)51%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into NewRule from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 637 100%
where it's called
Callsites in the wild
12 representative callsites of 685, prioritizing in-loop and non-test usage. We link to source, never display it.
-
kubernetes/kubernetes @master
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go:56 ↗
-
k8s.io/kubernetes @v1.36.3
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go:56
-
kubernetes/kubernetes @master
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go:69 ↗
-
k8s.io/kubernetes @v1.36.3
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go:69
-
kubernetes/kubernetes @master
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go:70 ↗
-
k8s.io/kubernetes @v1.36.3
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go:70
-
k8s.io/kubernetes @v1.36.3
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go:71
-
kubernetes/kubernetes @master
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go:71 ↗
-
k8s.io/kubernetes @v1.36.3
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go:72
-
kubernetes/kubernetes @master
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go:72 ↗
-
kubernetes/kubernetes @master
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go:74 ↗
-
k8s.io/kubernetes @v1.36.3
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go:74
top callers
The modules that reach for it
The modules that call NewRule most in this snapshot.
- github.com/kubernetes/kubernetes34751%
- k8s.io/kubernetes33849%
siblings
More from k8s.io/kubernetes/pkg/apis/rbac/v1
The other most-called functions in this package. See all →