Skip to content

victorwedo/lens-extension-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Lens Extension API Samples

This repository contains sample code illustrating the Lens Extension API. You can read, play with or adapt from these samples to create your own extensions.

You can expect from each sample:

  • An explanation of its functionality
  • A gif or screenshot demonstrating its usage
  • Link to a guide on Lens Documentation website, if it has one
  • Code of the same style, enforced using ESLint

Prerequisites

You need to have node and npm installed on your system to run the examples. It is recommended to use the node version used for Lens development itself which is documented here.

Usage

To install one of the samples follow the below instructions:

Linux

git clone https://github.com/lensapp/lens-extension-samples
mkdir -p ~/.k8slens/extensions
cp -pr ./lens-extension-samples/<sample folder> ~/.k8slens/extensions/
cd ~/.k8slens/extensions/<sample folder>
npm install
npm run build

The extension will now be built. If Lens is already open then you can reload it to pick up the newly installed extension.

Getting Started

Samples

Sample Guide on Lens Documentation Website
Hello World Sample LensRendererExtension

About

Lens Extension API Samples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 55.8%
  • JavaScript 38.7%
  • SCSS 4.1%
  • Makefile 1.4%