37 Star 411 Fork 76

GVPrancher/rancher

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
controller.go 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
Darren Shepherd 提交于 2018-03-31 03:57 . Refactor RKE provisioning
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/clusterdeploy"
"github.com/rancher/rancher/pkg/controllers/management/clusterevents"
"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/compose"
"github.com/rancher/rancher/pkg/controllers/management/node"
"github.com/rancher/rancher/pkg/controllers/management/nodedriver"
"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)
// a-z
catalog.Register(ctx, management)
clusterdeploy.Register(management, manager)
clusterevents.Register(ctx, management)
clustergc.Register(management)
clusterprovisioner.Register(management)
clusterstats.Register(management, manager)
compose.Register(management, manager)
nodedriver.Register(management)
nodepool.Register(management)
node.Register(management)
usercontrollers.Register(ctx, management, manager)
podsecuritypolicy.Register(management)
// 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.0.2-rc1

搜索帮助

0d507c66 1850385 C8b1a773 1850385