Skip to content

Commit

Permalink
krr get cluster summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-Robusta committed Jun 30, 2024
1 parent e34323d commit f80a4f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions robusta_krr/core/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ async def _collect_result(self) -> Result:

with ProgressBar(title="Calculating Recommendation") as self.__progressbar:
workloads = await self._k8s_loader.list_scannable_objects(clusters)
if len(clusters) == 1:
prometheus_loader = self._get_prometheus_loader(clusters[0])
if not clusters:
# we only need this for in cluster scan
prometheus_loader = self._get_prometheus_loader(None)
cluster_summary = await prometheus_loader.get_cluster_summary()
else:
cluster_summary = {}
Expand Down

0 comments on commit f80a4f6

Please sign in to comment.