We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 644d66e commit ffaf3ffCopy full SHA for ffaf3ff
robusta_krr/core/runner.py
@@ -289,7 +289,10 @@ async def _collect_result(self) -> Result:
289
if not clusters or len(clusters) == 1:
290
cluster_name = clusters[0] if clusters else None # its none if krr is running inside cluster
291
prometheus_loader = self._get_prometheus_loader(cluster_name)
292
- cluster_summary = await prometheus_loader.get_cluster_summary()
+ if prometheus_loader:
293
+ cluster_summary = await prometheus_loader.get_cluster_summary()
294
+ else:
295
+ cluster_summary = {}
296
else:
297
cluster_summary = {}
298
scans = await asyncio.gather(*[self._gather_object_allocations(k8s_object) for k8s_object in workloads])
0 commit comments