在集群中可以设置自动加入DNS的CNAME记录

This commit is contained in:
刘祥超
2021-09-20 16:37:41 +08:00
parent a19c4dffcd
commit f6f8c5c858
10 changed files with 65 additions and 1 deletions

View File

@@ -61,6 +61,12 @@ func (this *ClusterAction) RunGet(params struct {
dnsMap["providerTypeName"] = dnsResp.Provider.TypeName
}
if len(dnsResp.CnameRecords) > 0 {
dnsMap["cnameRecords"] = dnsResp.CnameRecords
} else {
dnsMap["cnameRecords"] = []string{}
}
this.Data["dnsInfo"] = dnsMap
// 节点DNS解析记录