MCPcopy Create free account
hub / github.com/deepflowio/deepflow / getSubDomainData

Method getSubDomainData

server/controller/cloud/sub_domain.go:35–41  ·  view source on GitHub ↗

合并附属容器集群的资源到云平台资源中 遍历Cloud下所有KubernetesGather的数据,更新部分属性信息,并合并到Cloud的resource中

(cResource model.Resource)

Source from the content-addressed store, hash-verified

33// 合并附属容器集群的资源到云平台资源中
34// 遍历Cloud下所有KubernetesGather的数据,更新部分属性信息,并合并到Cloud的resource中
35func (c *Cloud) getSubDomainData(cResource model.Resource) map[string]model.SubDomainResource {
36 subDomainResources := make(map[string]model.SubDomainResource)
37 for lcuuid, kubernetesGatherTask := range c.kubernetesGatherTaskMap {
38 subDomainResources[lcuuid] = c.generateSubDomainResource(lcuuid, kubernetesGatherTask.GetResource(), cResource)
39 }
40 return subDomainResources
41}
42
43func (c *Cloud) getSubDomainDataByLcuuid(lcuuid string, cResource model.Resource) map[string]model.SubDomainResource {
44 kubernetesGatherTask, ok := c.kubernetesGatherTaskMap[lcuuid]

Callers 1

GetResourceMethod · 0.95

Calls 2

GetResourceMethod · 0.45

Tested by

no test coverage detected