37 Star 411 Fork 76

GVPrancher/rancher

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
controller.go 2.60 KB
一键复制 编辑 原始数据 按行查看 历史
dax 提交于 2019-05-06 09:14 . Fix default admin stuck in removing
package management
import (
"context"
"github.com/rancher/rancher/pkg/clustermanager"
"github.com/rancher/rancher/pkg/controllers/management/auth"
"github.com/rancher/rancher/pkg/controllers/management/catalog"
"github.com/rancher/rancher/pkg/controllers/management/cloudcredential"
"github.com/rancher/rancher/pkg/controllers/management/cluster"
"github.com/rancher/rancher/pkg/controllers/management/clusterdeploy"
"github.com/rancher/rancher/pkg/controllers/management/clustergc"
"github.com/rancher/rancher/pkg/controllers/management/clusterprovisioner"
"github.com/rancher/rancher/pkg/controllers/management/clusterstats"
"github.com/rancher/rancher/pkg/controllers/management/clusterstatus"
"github.com/rancher/rancher/pkg/controllers/management/compose"
"github.com/rancher/rancher/pkg/controllers/management/drivers/kontainerdriver"
"github.com/rancher/rancher/pkg/controllers/management/drivers/nodedriver"
"github.com/rancher/rancher/pkg/controllers/management/etcdbackup"
"github.com/rancher/rancher/pkg/controllers/management/globaldns"
"github.com/rancher/rancher/pkg/controllers/management/multiclusterapp"
"github.com/rancher/rancher/pkg/controllers/management/node"
"github.com/rancher/rancher/pkg/controllers/management/nodepool"
"github.com/rancher/rancher/pkg/controllers/management/podsecuritypolicy"
"github.com/rancher/rancher/pkg/controllers/management/usercontrollers"
"github.com/rancher/types/config"
)
func Register(ctx context.Context, management *config.ManagementContext, manager *clustermanager.Manager) {
// auth handlers need to run early to create namespaces that back clusters and projects
// also, these handlers are purely in the mgmt plane, so they are lightweight compared to those that interact with machines and clusters
auth.RegisterEarly(ctx, management, manager)
usercontrollers.RegisterEarly(ctx, management, manager)
// a-z
catalog.Register(ctx, management)
cluster.Register(ctx, management)
clusterdeploy.Register(ctx, management, manager)
clustergc.Register(ctx, management)
clusterprovisioner.Register(ctx, management)
clusterstats.Register(ctx, management, manager)
clusterstatus.Register(ctx, management)
compose.Register(ctx, management, manager)
kontainerdriver.Register(ctx, management)
nodedriver.Register(ctx, management)
nodepool.Register(ctx, management)
cloudcredential.Register(ctx, management)
node.Register(ctx, management)
podsecuritypolicy.Register(ctx, management)
etcdbackup.Register(ctx, management)
globaldns.Register(ctx, management)
multiclusterapp.Register(ctx, management, manager)
// Register last
auth.RegisterLate(ctx, management)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/rancher/rancher.git
git@gitee.com:rancher/rancher.git
rancher
rancher
rancher
v2.2.5-rc11

搜索帮助

0d507c66 1850385 C8b1a773 1850385