合并附属容器集群的资源到云平台资源中 遍历Cloud下所有KubernetesGather的数据,更新部分属性信息,并合并到Cloud的resource中
(cResource model.Resource)
| 33 | // 合并附属容器集群的资源到云平台资源中 |
| 34 | // 遍历Cloud下所有KubernetesGather的数据,更新部分属性信息,并合并到Cloud的resource中 |
| 35 | func (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 | |
| 43 | func (c *Cloud) getSubDomainDataByLcuuid(lcuuid string, cResource model.Resource) map[string]model.SubDomainResource { |
| 44 | kubernetesGatherTask, ok := c.kubernetesGatherTaskMap[lcuuid] |
no test coverage detected