Skip to main content

Class: Registry

Defined in: plugin/registry.tsx:169

Constructors

Constructor

new Registry(): Registry;

Returns

Registry

Methods

registerAppBarAction()

registerAppBarAction(actionName: string, actionFunc: (...args: any[]) => ReactNode): void;

Defined in: plugin/registry.tsx:215

Parameters

ParameterType
actionNamestring
actionFunc(...args: any[]) => ReactNode

Returns

void

Deprecated

Registry.registerAppBarAction is deprecated. Please use registerAppBarAction.


registerAppLogo(logo: AppLogoType): void;

Defined in: plugin/registry.tsx:264

Parameters

ParameterType
logoAppLogoType

Returns

void

Deprecated

Registry.registerAppLogo is deprecated. Please use registerAppLogo.


registerClusterChooserComponent()

registerClusterChooserComponent(component: 
| ComponentType<ClusterChooserProps>
| null): void;

Defined in: plugin/registry.tsx:272

Parameters

ParameterType
component| ComponentType<ClusterChooserProps> | null

Returns

void

Deprecated

Registry.registerClusterChooserComponent is deprecated. Please use registerClusterChooser.


registerDetailsViewHeaderAction()

registerDetailsViewHeaderAction(actionName: string, actionFunc: HeaderActionType): void;

Defined in: plugin/registry.tsx:205

Parameters

ParameterType
actionNamestring
actionFuncHeaderActionType

Returns

void

Deprecated

Registry.registerDetailsViewHeaderAction is deprecated. Please use registerDetailsViewHeaderAction.


registerDetailsViewSection()

registerDetailsViewSection(sectionName: string, sectionFunc: (resource: KubeObject) => SectionFuncProps | null): void;

Defined in: plugin/registry.tsx:237

Parameters

ParameterType
sectionNamestring
sectionFunc(resource: KubeObject) => SectionFuncProps | null

Returns

void

Deprecated

Registry.registerDetailsViewSection is deprecated. Please use registerDetailsViewSection.


register.registerDetailsViewSection('biolatency', resource => {
if (resource?.kind === 'Node') {
return {
title: 'Block I/O Latency',
component: () => <CustomComponent />,
};
}
return null;
});


registerRoute()

registerRoute(routeSpec: Route): void;

Defined in: plugin/registry.tsx:197

Parameters

ParameterType
routeSpecRoute

Returns

void

Deprecated

Registry.registerRoute is deprecated. Please use registerRoute.


registerSidebarItem()

registerSidebarItem(
parentName: string | null,
itemName: string,
itemLabel: string,
url: string,
opts?: Pick<SidebarEntryProps, "sidebar" | "useClusterURL" | "icon">): void;

Defined in: plugin/registry.tsx:173

Parameters

ParameterType
parentNamestring | null
itemNamestring
itemLabelstring
urlstring
optsPick<SidebarEntryProps, "sidebar" | "useClusterURL" | "icon">

Returns

void

Deprecated

Registry.registerSidebarItem is deprecated. Please use registerSidebarItem.