Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pkg/overview/ClusterOverviewService.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,12 @@ func (impl *ClusterOverviewServiceImpl) fetchClusterDataParallel(ctx context.Con
detail, err := impl.k8sCapacityService.GetClusterCapacityDetail(ctx, clusterCopy, false)
if err != nil {
impl.logger.Warnw("error fetching cluster capacity, skipping", "clusterId", clusterCopy.Id, "clusterName", clusterCopy.ClusterName, "err", err)
// Return error to skip this cluster
return nil, err
// Populate error for this cluster
detail = &capacityBean.ClusterCapacityDetail{
ErrorInConnection: err.Error(),
Status: capacityBean.ClusterStatusConnectionFailed,
}
// Continue to next cluster, returning error will stop the worker pool from further processing
}

// Set cluster metadata
Expand Down