k3s/pkg/registry/rbac/validation
Clayton Coleman 4c87a14e6b
Avoid allocating when performing VisitRulesFor on service accounts
Service account authorization checks are done frequently and were
observed to perform 7% of allocations on a system running e2e tests.
The allocation comes from when we walk the authorization rules to
find matching service accounts.

Optimize the check for service account names to avoid allocating.
2019-03-13 17:40:21 -04:00
..
BUILD Move from glog to klog 2018-11-10 07:50:31 -05:00
internal_version_adapter.go switch rbac to external 2018-05-22 08:17:05 -04:00
policy_compact.go switch rbac to external 2018-05-22 08:17:05 -04:00
policy_compact_test.go switch rbac to external 2018-05-22 08:17:05 -04:00
policy_comparator.go switch rbac to external 2018-05-22 08:17:05 -04:00
policy_comparator_test.go switch rbac to external 2018-05-22 08:17:05 -04:00
rule.go Avoid allocating when performing VisitRulesFor on service accounts 2019-03-13 17:40:21 -04:00
rule_test.go switch rbac to external 2018-05-22 08:17:05 -04:00