- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for bootstrapRoles (0.38 sec)
-
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy_test.go
roles := map[string]runtime.Object{} namespaceRoles := bootstrappolicy.NamespaceRoles() for _, namespace := range sets.StringKeySet(namespaceRoles).List() { bootstrapRoles := namespaceRoles[namespace] for i := range bootstrapRoles { role := bootstrapRoles[i] names.Insert(role.Name) roles[role.Name] = &role } for _, name := range names.List() { list.Items = append(list.Items, roles[name]) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:45:31 UTC 2023 - 9.5K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/rbac/rbac_test.go
func (r *requestAttributeBuilder) New() authorizer.AttributesRecord { return r.request } func BenchmarkAuthorize(b *testing.B) { bootstrapRoles := []rbacv1.ClusterRole{} bootstrapRoles = append(bootstrapRoles, bootstrappolicy.ControllerRoles()...) bootstrapRoles = append(bootstrapRoles, bootstrappolicy.ClusterRoles()...) bootstrapBindings := []rbacv1.ClusterRoleBinding{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 24 15:14:54 UTC 2019 - 21.1K bytes - Viewed (0)