test access control cache

This commit is contained in:
niusmallnan
2021-10-13 13:23:18 +08:00
parent 21bdcd0ead
commit 3103501002

View File

@@ -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
}