37 Star 396 Fork 71

GVPrancher / rancher

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
controllers.go 2.59 KB
一键复制 编辑 原始数据 按行查看 历史
Alena Prokharchyk 提交于 2018-06-26 16:21 . Project level resource quota
package user
import (
"context"
"github.com/rancher/rancher/pkg/controllers/management/compose/common"
"github.com/rancher/rancher/pkg/controllers/user/alert"
"github.com/rancher/rancher/pkg/controllers/user/approuter"
"github.com/rancher/rancher/pkg/controllers/user/dnsrecord"
"github.com/rancher/rancher/pkg/controllers/user/endpoints"
"github.com/rancher/rancher/pkg/controllers/user/externalservice"
"github.com/rancher/rancher/pkg/controllers/user/healthsyncer"
"github.com/rancher/rancher/pkg/controllers/user/helm"
"github.com/rancher/rancher/pkg/controllers/user/ingress"
"github.com/rancher/rancher/pkg/controllers/user/ingresshostgen"
"github.com/rancher/rancher/pkg/controllers/user/logging"
"github.com/rancher/rancher/pkg/controllers/user/networkpolicy"
"github.com/rancher/rancher/pkg/controllers/user/noderemove"
"github.com/rancher/rancher/pkg/controllers/user/nodesyncer"
"github.com/rancher/rancher/pkg/controllers/user/nslabels"
"github.com/rancher/rancher/pkg/controllers/user/pipeline"
"github.com/rancher/rancher/pkg/controllers/user/rbac"
"github.com/rancher/rancher/pkg/controllers/user/rbac/podsecuritypolicy"
"github.com/rancher/rancher/pkg/controllers/user/resourcequota"
"github.com/rancher/rancher/pkg/controllers/user/secret"
"github.com/rancher/rancher/pkg/controllers/user/targetworkloadservice"
"github.com/rancher/rancher/pkg/controllers/user/workload"
"github.com/rancher/types/config"
)
func Register(ctx context.Context, cluster *config.UserContext, kubeConfigGetter common.KubeConfigGetter, clusterManager healthsyncer.ClusterControllerLifecycle) error {
alert.Register(ctx, cluster)
rbac.Register(cluster)
healthsyncer.Register(ctx, cluster, clusterManager)
helm.Register(cluster, kubeConfigGetter)
logging.Register(ctx, cluster)
networkpolicy.Register(cluster)
noderemove.Register(cluster)
nodesyncer.Register(cluster)
nslabels.Register(cluster)
pipeline.Register(ctx, cluster)
podsecuritypolicy.RegisterCluster(cluster)
podsecuritypolicy.RegisterBindings(cluster)
podsecuritypolicy.RegisterNamespace(cluster)
podsecuritypolicy.RegisterServiceAccount(cluster)
podsecuritypolicy.RegisterTemplate(cluster)
secret.Register(cluster)
endpoints.Register(ctx, cluster)
approuter.Register(ctx, cluster)
resourcequota.Register(ctx, cluster)
userOnlyContext := cluster.UserOnlyContext()
dnsrecord.Register(ctx, userOnlyContext)
externalservice.Register(ctx, userOnlyContext)
ingress.Register(ctx, userOnlyContext, cluster)
ingresshostgen.Register(userOnlyContext)
targetworkloadservice.Register(ctx, userOnlyContext)
workload.Register(ctx, userOnlyContext)
return nil
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/rancher/rancher.git
git@gitee.com:rancher/rancher.git
rancher
rancher
rancher
v2.0.14-rc2

搜索帮助

344bd9b3 5694891 D2dac590 5694891