From 3f7e9256c3236436e0bd9162b7e1e9e8601fcfa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Dudfield?= Date: Mon, 4 Nov 2024 08:14:06 +0100 Subject: [PATCH] frontend: Fix missing cluster fields in list views for multi cluster MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: René Dudfield --- frontend/src/components/cluster/Overview.tsx | 1 + frontend/src/components/node/List.tsx | 2 +- frontend/src/components/resourceQuota/List.tsx | 1 + .../webhookconfiguration/ValidatingWebhookConfigList.tsx | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/cluster/Overview.tsx b/frontend/src/components/cluster/Overview.tsx index 33325725f5..03ab012ebc 100644 --- a/frontend/src/components/cluster/Overview.tsx +++ b/frontend/src/components/cluster/Overview.tsx @@ -151,6 +151,7 @@ function EventsSection() { gridTemplate: 1.5, }, 'namespace', + 'cluster', { label: t('Reason'), getValue: event => event.reason, diff --git a/frontend/src/components/node/List.tsx b/frontend/src/components/node/List.tsx index b04e4dabb9..8a0be733f7 100644 --- a/frontend/src/components/node/List.tsx +++ b/frontend/src/components/node/List.tsx @@ -22,6 +22,7 @@ export default function NodeList() { resourceClass={Node} columns={[ 'name', + 'cluster', { id: 'cpu', label: t('CPU'), @@ -143,7 +144,6 @@ export default function NodeList() { }, show: false, }, - 'cluster', 'age', ]} /> diff --git a/frontend/src/components/resourceQuota/List.tsx b/frontend/src/components/resourceQuota/List.tsx index 2bb64e1837..79dea2f195 100644 --- a/frontend/src/components/resourceQuota/List.tsx +++ b/frontend/src/components/resourceQuota/List.tsx @@ -46,6 +46,7 @@ export function ResourceQuotaRenderer(props: ResourceQuotaProps) { columns={[ 'name', 'namespace', + 'cluster', { id: 'requests', label: t('translation|Request'), diff --git a/frontend/src/components/webhookconfiguration/ValidatingWebhookConfigList.tsx b/frontend/src/components/webhookconfiguration/ValidatingWebhookConfigList.tsx index 6123dde71b..84fbffa854 100644 --- a/frontend/src/components/webhookconfiguration/ValidatingWebhookConfigList.tsx +++ b/frontend/src/components/webhookconfiguration/ValidatingWebhookConfigList.tsx @@ -11,6 +11,7 @@ export default function ValidatingWebhookConfigurationList() { resourceClass={ValidatingWebhookConfiguration} columns={[ 'name', + 'cluster', { id: 'webhooks', label: t('Webhooks'),