diff --git a/pkg/analyze/cluster_container_statuses.go b/pkg/analyze/cluster_container_statuses.go index 7f3010b3e..8dd96978c 100644 --- a/pkg/analyze/cluster_container_statuses.go +++ b/pkg/analyze/cluster_container_statuses.go @@ -160,6 +160,10 @@ func (a *AnalyzeClusterContainerStatuses) analyzeContainerStatuses(podContainers // empty when indicates final case, let's return the result if when == "" { + // return collected results if any + if len(results) > 0 { + return results, nil + } return []*AnalyzeResult{&r}, nil }