mirror of
https://github.com/niusmallnan/steve.git
synced 2025-08-31 12:48:54 +00:00
test access control cache
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
||||
"github.com/rancher/steve/pkg/server/handler"
|
||||
"github.com/rancher/steve/pkg/server/router"
|
||||
"github.com/rancher/steve/pkg/summarycache"
|
||||
"github.com/sirupsen/logrus"
|
||||
"k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
@@ -128,6 +129,7 @@ func setup(ctx context.Context, server *Server) error {
|
||||
|
||||
asl := server.AccessSetLookup
|
||||
if asl == nil {
|
||||
logrus.Info("*********** Register accessstore by steve")
|
||||
asl = accesscontrol.NewAccessStore(ctx, true, server.controllers.RBAC)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user