mirror of
https://github.com/niusmallnan/steve.git
synced 2025-09-25 04:11:57 +00:00
test access control cache
This commit is contained in:
@@ -17,7 +17,7 @@ type roleRevisionIndex struct {
|
||||
func newRoleRevision(ctx context.Context, rbac rbac.Interface) *roleRevisionIndex {
|
||||
r := &roleRevisionIndex{}
|
||||
rbac.Role().OnChange(ctx, "role-revision-indexer", r.onRoleChanged)
|
||||
rbac.ClusterRole().OnChange(ctx, "role-revision-indexer", r.onClusterRoleChanged)
|
||||
rbac.ClusterRole().OnChange(ctx, "clusterrole-revision-indexer", r.onClusterRoleChanged)
|
||||
return r
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user