From a308320dd65593686c83667f66bd98f6eda5ae75 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Fri, 7 Apr 2023 10:56:02 +0300 Subject: [PATCH] Remove namespace and labels columns Signed-off-by: Alex Andreev --- .../mutating-webhook-configurations.tsx | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configurations.tsx b/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configurations.tsx index 824743c8d0..d51ec14d4e 100644 --- a/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configurations.tsx +++ b/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configurations.tsx @@ -10,15 +10,11 @@ import { SiblingsInTabLayout } from "../layout/siblings-in-tab-layout"; import type { MutatingWebhookConfigurationStore } from "./mutating-webhook-configuration-store"; import { withInjectables } from "@ogre-tools/injectable-react"; import mutatingWebhookConfigurationsStoreInjectable from "./mutating-webhook-configuration-store.injectable"; -import { NamespaceSelectBadge } from "../+namespaces/namespace-select-badge"; -import { Badge } from "../badge"; import { KubeObjectAge } from "../kube-object/age"; enum columnId { name = "name", - namespace = "namespace", webhooks = "webhooks", - selector = "selector", age = "age", } @@ -36,8 +32,6 @@ const NonInjectedMutatingWebhookConfigurations = observer((props: Dependencies) store={props.store} sortingCallbacks={{ [columnId.name]: item => item.getName(), - [columnId.namespace]: item => item.getNs(), - [columnId.selector]: item => item.getLabels(), [columnId.webhooks]: item => item.getWebhooks().length, [columnId.age]: item => -item.getCreationTimestamp(), }} @@ -48,17 +42,6 @@ const NonInjectedMutatingWebhookConfigurations = observer((props: Dependencies) renderHeaderTitle="Mutating Webhook Configurations" renderTableHeader={[ { title: "Name", className: "name", sortBy: columnId.name, id: columnId.name }, - { - title: "Namespace", - className: "namespace", - sortBy: columnId.namespace, - id: columnId.namespace, - }, - { - title: "Labels", - sortBy: columnId.selector, - id: columnId.selector, - }, { title: "Webhooks", sortBy: columnId.webhooks, @@ -68,8 +51,6 @@ const NonInjectedMutatingWebhookConfigurations = observer((props: Dependencies) ]} renderTableContents={item => [ item.getName(), - , - item.getLabels().map(label => ()), item.getWebhooks().length, , ]}