diff --git a/app/react/kubernetes/more-resources/ClusterRolesView/ClusterRolesDatatable/columns/name.tsx b/app/react/kubernetes/more-resources/ClusterRolesView/ClusterRolesDatatable/columns/name.tsx index b73bc6180..15a879a3a 100644 --- a/app/react/kubernetes/more-resources/ClusterRolesView/ClusterRolesDatatable/columns/name.tsx +++ b/app/react/kubernetes/more-resources/ClusterRolesView/ClusterRolesDatatable/columns/name.tsx @@ -1,5 +1,4 @@ import { SystemBadge } from '@@/Badge/SystemBadge'; -import { UnusedBadge } from '@@/Badge/UnusedBadge'; import { columnHelper } from './helper'; @@ -9,9 +8,6 @@ export const name = columnHelper.accessor( if (row.isSystem) { result += ' system'; } - if (row.isUnused) { - result += ' unused'; - } return result; }, { @@ -21,7 +17,6 @@ export const name = columnHelper.accessor(
{row.original.name} {row.original.isSystem && } - {row.original.isUnused && }
), } diff --git a/app/react/kubernetes/more-resources/ClusterRolesView/ClusterRolesDatatable/types.ts b/app/react/kubernetes/more-resources/ClusterRolesView/ClusterRolesDatatable/types.ts index ae8561a6c..fcb0795a8 100644 --- a/app/react/kubernetes/more-resources/ClusterRolesView/ClusterRolesDatatable/types.ts +++ b/app/react/kubernetes/more-resources/ClusterRolesView/ClusterRolesDatatable/types.ts @@ -1,20 +1,7 @@ -export type Rule = { - verbs: string[]; - apiGroups: string[]; - resources: string[]; -}; - export type ClusterRole = { name: string; - uid: string; - namespace: string; - resourceVersion: string; creationDate: string; - annotations?: Record; - - rules: Rule[]; - - isUnused: boolean; + uid: string; isSystem: boolean; };