Skip to content

Commit 991bd9c

Browse files
Allow k8s process sync when domain unverified
1 parent 737d2cd commit 991bd9c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

server/controller/cloud/cloud.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ func (c *Cloud) GetResource() model.Resource {
244244
cResource = c.getKubernetesData()
245245
}
246246
if !cResource.Verified {
247+
if c.basicInfo.Type == common.KUBERNETES {
248+
cResource = c.appendResourceProcess(cResource)
249+
return cResource
250+
}
247251
return model.Resource{
248252
ErrorState: cResource.ErrorState,
249253
ErrorMessage: cResource.ErrorMessage,
@@ -700,12 +704,15 @@ func (c *Cloud) appendResourceProcess(resource model.Resource) model.Resource {
700704
StartTime: sProcess.StartTime,
701705
OSAPPTags: sProcess.OSAPPTags,
702706
}
703-
if resource.Verified && lcuuid == "" {
707+
if (resource.Verified || c.basicInfo.Type == common.KUBERNETES) && lcuuid == "" {
704708
resource.Processes = append(resource.Processes, process)
705709
continue
706710
}
707711
subDomainResource, ok := resource.SubDomainResources[lcuuid]
708712
if !ok || !subDomainResource.Verified {
713+
if c.basicInfo.Type == common.KUBERNETES {
714+
resource.Processes = append(resource.Processes, process)
715+
}
709716
continue
710717
}
711718
process.SubDomainLcuuid = lcuuid

0 commit comments

Comments
 (0)