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

Method getSubDomainPodClusters

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

Source from the content-addressed store, hash-verified

470}
471
472func (c *Cloud) getSubDomainPodClusters(
473 subDomainLcuuid string, resource *kubernetes_model.KubernetesGatherResource, azLcuuid string,
474) []model.PodCluster {
475 var retPodClusters []model.PodCluster
476
477 // 通过PodClusters,更新az信息;并添加到Cloud的Resource中
478 retPodClusters = append(retPodClusters, model.PodCluster{
479 Lcuuid: resource.PodCluster.Lcuuid,
480 Name: resource.PodCluster.Name,
481 ClusterName: resource.PodCluster.ClusterName,
482 Version: resource.PodCluster.Version,
483 VPCLcuuid: resource.PodCluster.VPCLcuuid,
484 AZLcuuid: azLcuuid,
485 RegionLcuuid: resource.PodCluster.RegionLcuuid,
486 SubDomainLcuuid: subDomainLcuuid,
487 })
488 return retPodClusters
489}
490
491func (c *Cloud) getSubDomainPodNamespaces(
492 subDomainLcuuid string, resource *kubernetes_model.KubernetesGatherResource, azLcuuid string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected