mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Show system roles and bindings on the dashboard
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
2a4704716d
commit
3f4aad911a
@ -42,22 +42,6 @@ export class RoleBindings extends React.Component<Props> {
|
||||
(binding: RoleBinding) => binding.getSubjectNames(),
|
||||
]}
|
||||
renderHeaderTitle={<Trans>Role Bindings</Trans>}
|
||||
filterItems={[
|
||||
(items: RoleBinding[]) => items.filter(KubeObject.isNonSystem),
|
||||
]}
|
||||
customizeHeader={({ info }) => ({
|
||||
info: (
|
||||
<>
|
||||
{info}
|
||||
<Icon
|
||||
small
|
||||
material="help_outline"
|
||||
className="help-icon"
|
||||
tooltip={<Trans>Excluded items with "system:" prefix</Trans>}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
})}
|
||||
renderTableHeader={[
|
||||
{ title: <Trans>Name</Trans>, className: "name", sortBy: sortBy.name },
|
||||
{ title: <Trans>Bindings</Trans>, className: "bindings", sortBy: sortBy.bindings },
|
||||
|
||||
@ -39,9 +39,6 @@ export class Roles extends React.Component<Props> {
|
||||
searchFilters={[
|
||||
(role: Role) => role.getSearchFields(),
|
||||
]}
|
||||
filterItems={[
|
||||
(items: Role[]) => items.filter(KubeObject.isNonSystem),
|
||||
]}
|
||||
renderHeaderTitle={<Trans>Roles</Trans>}
|
||||
customizeHeader={({ info }) => ({
|
||||
info: (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user