mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
- Add unit tests to cover custom resources sidebar items Signed-off-by: Sebastian Malton <sebastian@malton.name>
15 lines
407 B
TypeScript
15 lines
407 B
TypeScript
import { getFeature } from "@k8slens/feature-core";
|
|
import { autoRegister } from "@ogre-tools/injectable-extension-for-auto-registration";
|
|
|
|
export const clusterSidebarFeature = getFeature({
|
|
id: "cluster-side-feature",
|
|
|
|
register: (di) => {
|
|
autoRegister({
|
|
di,
|
|
targetModule: module,
|
|
getRequireContexts: () => [require.context("./", true, /\.injectable\.(ts|tsx)$/)],
|
|
});
|
|
},
|
|
});
|