From b333980ffde7191a7c7d0c99402dda08e77f99a3 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 6 Nov 2020 10:38:18 +0000 Subject: [PATCH] Deployed e0e4415 to latest with MkDocs 1.1.2 and mike 0.5.3 --- .../your-first-extension/index.html | 22 +++++++++--------- latest/getting-started/index.html | 4 ++-- latest/sitemap.xml.gz | Bin 400 -> 400 bytes 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/latest/extensions/get-started/your-first-extension/index.html b/latest/extensions/get-started/your-first-extension/index.html index 8071820c2c..d66b378ebd 100644 --- a/latest/extensions/get-started/your-first-extension/index.html +++ b/latest/extensions/get-started/your-first-extension/index.html @@ -802,26 +802,26 @@

Simple Lens extension that adds "Hello World" page to a cluster menu.

Linux#

First you will need to clone the Lens Extension samples repository to your local machine:

-
git clone https://github.com/lensapp/lens-extension-samples.git 
-
+
git clone https://github.com/lensapp/lens-extension-samples.git 
+

Next you need to create a symlink from the directory that Lens will monitor for user installed extensions to the sample extension, in this case helloworld-sample:

-
mkdir -p ~/.k8slens/extensions
-cd ~/.k8slens/extensions
+
mkdir -p ~/.k8slens/extensions
+cd ~/.k8slens/extensions
 ln -s <lens-extension-samples directory>/helloworld-sample helloworld-sample
-
+

To build the extension you can use make or run the npm commands manually:

-
cd <lens-extension-samples directory>/helloworld-sample
+
cd <lens-extension-samples directory>/helloworld-sample
 make build
-
+

OR

-
cd <lens-extension-samples directory>/helloworld-sample
+
cd <lens-extension-samples directory>/helloworld-sample
 npm install
 npm run build
-
+

If you want to watch for any source code changes and automatically rebuild the extension you can use:

-
cd <lens-extension-samples directory>/helloworld-sample
+
cd <lens-extension-samples directory>/helloworld-sample
 npm run dev
-
+

Finally, if you already have Lens open you will need to quit and restart Lens for the extension to be loaded. After this initial restart you can reload Lens and it will pick up any new builds of the extension. Within Lens connect to an existing cluster or create a new one. You should see then see the "Hello World" page in the Lens sidebar cluster menu.

Developing the extension#

Let's make a change to the message that our helloworld-sample extension displays:

diff --git a/latest/getting-started/index.html b/latest/getting-started/index.html index e16a9a2b81..f3624e595b 100644 --- a/latest/getting-started/index.html +++ b/latest/getting-started/index.html @@ -858,8 +858,8 @@

Lens is officially distributed as a Snap package in the Snap Store:

Get it from the Snap Store

You can install it by running:

-
sudo snap install kontena-lens --classic
-
+
sudo snap install kontena-lens --classic
+

Update cadence#

Lens releases a new version each month with new features and important bug fixes. Lens supports auto updating and you will be prompted to install the new release when it becomes available!

To stay current with the Lens features, you can review the release notes.

diff --git a/latest/sitemap.xml.gz b/latest/sitemap.xml.gz index 3dc4b687ae5c3ada52869a7be6203e3163c93de7..99f502632f0c5c7f00ef9e27e96e6f844eccd65c 100644 GIT binary patch delta 15 WcmbQhJb{@_zMF$%rus&fTW7b5^1cmr+#