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

Method getSubDomainPodNamespaces

server/controller/cloud/sub_domain.go:491–508  ·  view source on GitHub ↗
(
	subDomainLcuuid string, resource *kubernetes_model.KubernetesGatherResource, azLcuuid string,
)

Source from the content-addressed store, hash-verified

489}
490
491func (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
510func (c *Cloud) getSubDomainIngresses(
511 subDomainLcuuid string, resource *kubernetes_model.KubernetesGatherResource, azLcuuid string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected