创建集群的时候可以填写DNS信息/集群设置页增加DNS设置功能

This commit is contained in:
刘祥超
2020-11-15 16:28:29 +08:00
parent fd7082cff6
commit 2eb81b52a0
4 changed files with 35 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ func (this *NodeClusterDAO) FindAllEnableClusters() (result []*NodeCluster, err
}
// 创建集群
func (this *NodeClusterDAO) CreateCluster(name string, grantId int64, installDir string) (clusterId int64, err error) {
func (this *NodeClusterDAO) CreateCluster(name string, grantId int64, installDir string, dnsDomainId int64, dnsName string) (clusterId int64, err error) {
uniqueId, err := this.genUniqueId()
if err != nil {
return 0, err
@@ -116,6 +116,8 @@ func (this *NodeClusterDAO) CreateCluster(name string, grantId int64, installDir
op.Name = name
op.GrantId = grantId
op.InstallDir = installDir
op.DnsDomainId = dnsDomainId
op.DnsName = dnsName
op.UseAllAPINodes = 1
op.ApiNodes = "[]"
op.UniqueId = uniqueId