1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Deployed e0e4415 to latest with MkDocs 1.1.2 and mike 0.5.3

This commit is contained in:
GitHub Action 2020-11-06 10:38:18 +00:00
parent 22de558a5b
commit b333980ffd
3 changed files with 13 additions and 13 deletions

View File

@ -802,26 +802,26 @@
<p>Simple Lens extension that adds "Hello World" page to a cluster menu.</p> <p>Simple Lens extension that adds "Hello World" page to a cluster menu.</p>
<h3 id="linux">Linux<a class="headerlink" href="#linux" title="Permanent link">#</a></h3> <h3 id="linux">Linux<a class="headerlink" href="#linux" title="Permanent link">#</a></h3>
<p>First you will need to clone the <a href="https://github.com/lensapp/lens-extension-samples">Lens Extension samples</a> repository to your local machine:</p> <p>First you will need to clone the <a href="https://github.com/lensapp/lens-extension-samples">Lens Extension samples</a> repository to your local machine:</p>
<pre><code class="language-sh">git clone https://github.com/lensapp/lens-extension-samples.git <div class="highlight"><pre><span></span><code>git clone https://github.com/lensapp/lens-extension-samples.git
</code></pre> </code></pre></div>
<p>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 <strong>helloworld-sample</strong>:</p> <p>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 <strong>helloworld-sample</strong>:</p>
<pre><code class="language-sh">mkdir -p ~/.k8slens/extensions <div class="highlight"><pre><span></span><code>mkdir -p ~/.k8slens/extensions
cd ~/.k8slens/extensions <span class="nb">cd</span> ~/.k8slens/extensions
ln -s &lt;lens-extension-samples directory&gt;/helloworld-sample helloworld-sample ln -s &lt;lens-extension-samples directory&gt;/helloworld-sample helloworld-sample
</code></pre> </code></pre></div>
<p>To build the extension you can use <code>make</code> or run the <code>npm</code> commands manually:</p> <p>To build the extension you can use <code>make</code> or run the <code>npm</code> commands manually:</p>
<pre><code class="language-sh">cd &lt;lens-extension-samples directory&gt;/helloworld-sample <div class="highlight"><pre><span></span><code><span class="nb">cd</span> &lt;lens-extension-samples directory&gt;/helloworld-sample
make build make build
</code></pre> </code></pre></div>
<p>OR</p> <p>OR</p>
<pre><code class="language-sh">cd &lt;lens-extension-samples directory&gt;/helloworld-sample <div class="highlight"><pre><span></span><code><span class="nb">cd</span> &lt;lens-extension-samples directory&gt;/helloworld-sample
npm install npm install
npm run build npm run build
</code></pre> </code></pre></div>
<p>If you want to watch for any source code changes and automatically rebuild the extension you can use:</p> <p>If you want to watch for any source code changes and automatically rebuild the extension you can use:</p>
<pre><code class="language-sh">cd &lt;lens-extension-samples directory&gt;/helloworld-sample <div class="highlight"><pre><span></span><code><span class="nb">cd</span> &lt;lens-extension-samples directory&gt;/helloworld-sample
npm run dev npm run dev
</code></pre> </code></pre></div>
<p>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 <a href="../../../clusters/adding-clusters/">create a new one</a>. You should see then see the "Hello World" page in the Lens sidebar cluster menu.</p> <p>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 <a href="../../../clusters/adding-clusters/">create a new one</a>. You should see then see the "Hello World" page in the Lens sidebar cluster menu.</p>
<h2 id="developing-the-extension">Developing the extension<a class="headerlink" href="#developing-the-extension" title="Permanent link">#</a></h2> <h2 id="developing-the-extension">Developing the extension<a class="headerlink" href="#developing-the-extension" title="Permanent link">#</a></h2>
<p>Let's make a change to the message that our helloworld-sample extension displays:</p> <p>Let's make a change to the message that our helloworld-sample extension displays:</p>

View File

@ -858,8 +858,8 @@
<p>Lens is officially distributed as a Snap package in the <a href="https://snapcraft.io/store">Snap Store</a>:</p> <p>Lens is officially distributed as a Snap package in the <a href="https://snapcraft.io/store">Snap Store</a>:</p>
<p><a href="https://snapcraft.io/kontena-lens"><img alt="Get it from the Snap Store" src="images/snap-store.png" /></a></p> <p><a href="https://snapcraft.io/kontena-lens"><img alt="Get it from the Snap Store" src="images/snap-store.png" /></a></p>
<p>You can install it by running:</p> <p>You can install it by running:</p>
<pre><code class="language-bash">sudo snap install kontena-lens --classic <div class="highlight"><pre><span></span><code>sudo snap install kontena-lens --classic
</code></pre> </code></pre></div>
<h2 id="update-cadence">Update cadence<a class="headerlink" href="#update-cadence" title="Permanent link">#</a></h2> <h2 id="update-cadence">Update cadence<a class="headerlink" href="#update-cadence" title="Permanent link">#</a></h2>
<p>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!</p> <p>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!</p>
<p>To stay current with the Lens features, you can review the <a href="https://github.com/lensapp/lens/releases">release notes</a>.</p> <p>To stay current with the Lens features, you can review the <a href="https://github.com/lensapp/lens/releases">release notes</a>.</p>

Binary file not shown.