summaryrefslogtreecommitdiff
path: root/robusta_krr/formatters
diff options
context:
space:
mode:
authorRobusta Runner <aantny@gmail.com>2024-03-20 19:53:57 +0100
committerRobusta Runner <aantny@gmail.com>2024-03-20 19:53:57 +0100
commit0fafdc6fb6cd4778b2838ccb71d3e627e5f2d2ae (patch)
treef651ae1e4f2721916726a6fe496af2368465ca0e /robusta_krr/formatters
parent0251ffc903efff22b965503ed2db92d5404d5529 (diff)
for dgdevops :)
Diffstat (limited to 'robusta_krr/formatters')
-rw-r--r--robusta_krr/formatters/table.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/robusta_krr/formatters/table.py b/robusta_krr/formatters/table.py
index a1c6e42..2cd8bbb 100644
--- a/robusta_krr/formatters/table.py
+++ b/robusta_krr/formatters/table.py
@@ -6,6 +6,7 @@ from rich.table import Table
from robusta_krr.core.abstract import formatters
from robusta_krr.core.models.allocations import RecommendationValue
from robusta_krr.core.models.result import ResourceScan, ResourceType, Result
+from robusta_krr.core.models.config import settings
from robusta_krr.utils import resource_units
NONE_LITERAL = "unset"
@@ -86,7 +87,7 @@ def table(result: Result) -> Table:
cluster_count = len(set(item.object.cluster for item in result.scans))
table.add_column("Number", justify="right", no_wrap=True)
- if cluster_count > 1:
+ if cluster_count > 1 or settings.show_cluster_name:
table.add_column("Cluster", style="cyan")
table.add_column("Namespace", style="cyan")
table.add_column("Name", style="cyan")