From 22011840b5f349e301e1d0fd22b2b9c8c213cc6d Mon Sep 17 00:00:00 2001
From: GitHub Action • IpcRegistrar.__@IpcPrefix@74718 IpcRegistrar.__@IpcPrefix@74723 • • [Disposers]: LensExtension.__@Disposers@30123 LensExtension.__@Disposers@30128 • LensExtension.__@lensExtensionDependencies@30126 LensExtension.__@lensExtensionDependencies@30131 • appMenus: • IpcRegistrar.__@IpcPrefix@74718 IpcRegistrar.__@IpcPrefix@74723 • • [Disposers]: LensExtension.__@Disposers@30123 LensExtension.__@Disposers@30128 • LensExtension.__@lensExtensionDependencies@30126 LensExtension.__@lensExtensionDependencies@30131 • additionalCategoryColumns: You must restart Lens for the extension to load.
After this initial restart, reload Lens and it will automatically pick up changes any time the extension rebuilds. With Lens running, either connect to an existing cluster or create a new one - refer to the latest Lens Documentation for details on how to add a cluster in Lens IDE.
+ With Lens running, either connect to an existing cluster or create a new one - refer to the latest Lens Documentation for details on how to add a cluster in Lens IDE.
You will see the "Hello World" page in the left-side cluster menu. Finally, you'll make a change to the message that our Hello World sample extension displays:[IpcPrefix]#
Readonly [IpcPrefix]: stringInherited from#
-
extension#
Protected extension: LensExtension<LensExtensionDependencies>[Disposers]#
ExtendableDisposerInherited from#
-
[lensExtensionDependencies]#
Readonly [lensExtensionDependencies]: LensMainExtensionDependenciesInherited from#
-
appMenus#
MenuRegistration[] = [][IpcPrefix]#
Readonly [IpcPrefix]: stringInherited from#
-
extension#
Protected extension: LensExtension<LensExtensionDependencies>[Disposers]#
ExtendableDisposerInherited from#
-
[lensExtensionDependencies]#
Readonly [lensExtensionDependencies]: LensRendererExtensionDependenciesInherited from#
-
additionalCategoryColumns#
AdditionalCategoryColumnRegistration[] = []Develop the Extension#
Open my-first-lens-ext/renderer.tsx and change the value of title from "Hello World" to "Hello Lens":
clusterPageMenus = [
- {
- target: { pageId: "hello" },
- title: "Hello Lens",
- components: {
- Icon: ExampleIcon,
- }
- }
-]
+ {
+ target: { pageId: "hello" },
+ title: "Hello Lens",
+ components: {
+ Icon: ExampleIcon,
+ },
+ },
+];
Reload Lens and you will see that the menu item text has changed to "Hello Lens".
To reload Lens, enter CMD+R on Mac and Ctrl+R on Windows/Linux.
CMD+R on Mac and Ctrl+R on Windo
To dive deeper, consider looking at Common Capabilities, Styling, or Extension Anatomy.
If you find problems with the Lens Extension Generator, or have feature requests, you are welcome to raise an issue. -You can find the latest Lens contribution guidelines here.
+You can find the latest Lens contribution guidelines here.The Generator source code is hosted at GitHub.
diff --git a/master/extensions/guides/renderer-extension/index.html b/master/extensions/guides/renderer-extension/index.html index cb11670d13..3f92cac000 100644 --- a/master/extensions/guides/renderer-extension/index.html +++ b/master/extensions/guides/renderer-extension/index.html @@ -1690,7 +1690,7 @@ The rest of this example's details are defined inPodsDetailsList,
Construct the table using the Renderer.Component.Table and related elements.
For each pod the name, age, and status are obtained using the Renderer.K8sApi.Pod methods.
The table is constructed using the Renderer.Component.Table and related elements.
-See Component documentation for further details.
kubeObjectStatusTexts#kubeWorkloadsOverviewItems#entitySettings#