( subDomainLcuuid string, resource *kubernetes_model.KubernetesGatherResource, azLcuuid string, )
| 489 | } |
| 490 | |
| 491 | func (c *Cloud) getSubDomainPodNamespaces( |
| 492 | subDomainLcuuid string, resource *kubernetes_model.KubernetesGatherResource, azLcuuid string, |
| 493 | ) []model.PodNamespace { |
| 494 | var retPodNamespaces []model.PodNamespace |
| 495 | |
| 496 | // 遍历PodNamespaces,更新az信息;并添加到Cloud的Resource中 |
| 497 | for _, podNamespace := range resource.PodNamespaces { |
| 498 | retPodNamespaces = append(retPodNamespaces, model.PodNamespace{ |
| 499 | Lcuuid: podNamespace.Lcuuid, |
| 500 | Name: podNamespace.Name, |
| 501 | PodClusterLcuuid: podNamespace.PodClusterLcuuid, |
| 502 | AZLcuuid: azLcuuid, |
| 503 | RegionLcuuid: podNamespace.RegionLcuuid, |
| 504 | SubDomainLcuuid: subDomainLcuuid, |
| 505 | }) |
| 506 | } |
| 507 | return retPodNamespaces |
| 508 | } |
| 509 | |
| 510 | func (c *Cloud) getSubDomainIngresses( |
| 511 | subDomainLcuuid string, resource *kubernetes_model.KubernetesGatherResource, azLcuuid string, |
no outgoing calls
no test coverage detected