mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 10:48:15 +08:00
[REV] fix remove datacentorConfig error
This commit is contained in:
parent
87398e474b
commit
8f1723ad30
@ -41,6 +41,7 @@ type MasterServer struct {
|
||||
|
||||
//NewMasterServer 创建master节点
|
||||
func NewMasterServer(node *model.HostNode, k8sClient *kubernetes.Clientset) (*MasterServer, error) {
|
||||
datacenterConfig := config.CreateDataCenterConfig()
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
cluster, err := CreateNodeCluster(k8sClient,node)
|
||||
if err != nil {
|
||||
@ -54,6 +55,7 @@ func NewMasterServer(node *model.HostNode, k8sClient *kubernetes.Clientset) (*Ma
|
||||
Cluster: cluster,
|
||||
ctx: ctx,
|
||||
cancel: cancel,
|
||||
datacenterConfig: datacenterConfig,
|
||||
}
|
||||
return ms, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user