From 697846f111e7be3bc25e912024779e00b84f89a7 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Thu, 7 Apr 2022 15:17:17 +0300 Subject: [PATCH] Use tooltipLabels in ClusterPieCharts for pods Signed-off-by: Alex Andreev --- src/renderer/components/+cluster/cluster-pie-charts.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/components/+cluster/cluster-pie-charts.tsx b/src/renderer/components/+cluster/cluster-pie-charts.tsx index f039c89161..f7bc9d0755 100644 --- a/src/renderer/components/+cluster/cluster-pie-charts.tsx +++ b/src/renderer/components/+cluster/cluster-pie-charts.tsx @@ -162,6 +162,10 @@ const NonInjectedClusterPieCharts = observer(({ clusterOverviewStore }: Dependen `Usage: ${podUsage || 0}`, `Capacity: ${podAllocatableCapacity}`, ], + tooltipLabels: [ + (percent) => `Usage: ${percent}`, + (percent) => `Available: ${percent}`, + ], }; return (