test access control cache

This commit is contained in:
niusmallnan
2021-10-13 13:34:07 +08:00
parent 3103501002
commit 435b39dd2c

View File

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