1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Go to file
Alex Andreev 8c73861962
Open last active cluster after switching workspaces (#1444)
* Save and restore lastActiveClusterId

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Activate clusters from workspaces page

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix saving last cluster while jumping from tray

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding workspace switch tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove console.log()

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Cleaning up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Clean duplicated ClusterId definition

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Moving lastActiveClusterId field into WorkspaceModel

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* fix extensionLoader error on dev environments where renderer might start early (#1447)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* Add Search by Ip to Pod View (#1445)

Signed-off-by: Pavel Ashevskii <pashevskii@mirantis.com>

* Make BaseStore abstract (#1431)

* make BaseStore abstract so that implementers are forced to decide how to store data

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Enforce semicolons in eslint

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Add a few missing folders to be linted.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Use @typescript-eslint/semi.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Allow extension cluster menus to have a parent (#1452)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix SwitchCase indent rule in eslint (#1454)

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Revert "fix SwitchCase indent rule in eslint (#1454)"

This reverts commit 082774fe6e.

* Revert "Allow extension cluster menus to have a parent (#1452)"

This reverts commit 622c45cd6d.

* Revert "Use @typescript-eslint/semi."

This reverts commit 890fa5dd9e.

* Revert "Add a few missing folders to be linted."

This reverts commit c7b24c2922.

* Revert "Enforce semicolons in eslint"

This reverts commit ca67caea60.

* Revert "Make BaseStore abstract (#1431)"

This reverts commit 4b56ab7c61.

* Revert "Add Search by Ip to Pod View (#1445)"

This reverts commit 4079214dc1.

* Revert "fix extensionLoader error on dev environments where renderer might start early (#1447)"

This reverts commit 8a3613ac6f.

* Split workspace tests to smaller ones

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Missing semicolons

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Split workspace tests a bit more

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding extra click in Add Cluster button

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding more awaits to check running cluster

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Wait for minikube before running tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Co-authored-by: pashevskii <53330707+pashevskii@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2020-11-20 14:53:28 +03:00
__mocks__ Add a few missing folders to be linted. 2020-11-19 17:05:30 +02:00
.github Documentation: add new gh-action to manually update the default version of the docs (#1413) 2020-11-17 10:05:25 +00:00
build Use @typescript-eslint/semi. 2020-11-19 18:12:52 +02:00
docs Extension Guides documentation (#1427) 2020-11-18 09:01:42 +02:00
extensions Add a few missing folders to be linted. 2020-11-19 17:05:30 +02:00
integration Open last active cluster after switching workspaces (#1444) 2020-11-20 14:53:28 +03:00
jsonnet Fix serviceMonitorKubelet's metricRelabelings (#225) 2020-04-10 11:05:18 +03:00
locales Add mechanism for users to specify accessible namespaces (#702) 2020-11-09 10:45:09 -05:00
mkdocs Documentation (MKDOCS) (#1230) 2020-11-05 16:38:56 +02:00
src Open last active cluster after switching workspaces (#1444) 2020-11-20 14:53:28 +03:00
static Release v4.0.0-beta.4 (#1462) 2020-11-20 13:01:12 +02:00
test-data add cluster icon migration code (#673) 2020-08-25 16:42:30 +03:00
troubleshooting Fix typo in documentation (#316) 2020-04-29 18:27:32 +03:00
types Log search (#1114) 2020-11-09 17:46:14 +03:00
.azure-pipelines.yml Cache make build-extensions (#1407) 2020-11-17 12:25:27 +02:00
.babelrc Lens restructure (#540) 2020-06-30 14:35:16 +03:00
.eslintrc.js fix SwitchCase indent rule in eslint (#1454) 2020-11-19 15:15:49 -05:00
.gitignore Remove Makefile from all intree extensions (#1312) 2020-11-13 12:32:15 -05:00
.npmrc Add engine to strict node version in package.json (#144) 2020-03-23 16:31:28 +02:00
.yarnrc Migrating Vue components to React and stores refactoring (#585) 2020-08-20 08:53:07 +03:00
LICENSE update license: cover docs under creative commons (#1154) 2020-10-27 15:45:15 +02:00
Makefile Cache make build-extensions (#1407) 2020-11-17 12:25:27 +02:00
mkdocs.yml Extension Guides documentation (#1427) 2020-11-18 09:01:42 +02:00
package.json Release v4.0.0-beta.4 (#1462) 2020-11-20 13:01:12 +02:00
README.md Remove make init from the readme (#1417) 2020-11-17 14:47:28 +02:00
RELEASE_GUIDE.md Document release process (#532) 2020-06-30 15:22:20 +03:00
tsconfig.extensions.json Generate extension-api .d.ts and .js files using tsc (#1387) 2020-11-16 15:09:16 +02:00
tsconfig.json set "allowJs" to false in tsconfig (#1377) 2020-11-16 10:43:22 -05:00
webpack.main.ts Remove hard-source-webpack-plugin (#1305) 2020-11-10 12:13:01 +02:00
webpack.renderer.ts add retry cap to handleStaticFile to prevent an infitite loop (#1373) 2020-11-13 15:45:57 -05:00
yarn.lock Generate extension-api .d.ts and .js files using tsc (#1387) 2020-11-16 15:09:16 +02:00

Lens | The Kubernetes IDE

Build Status Releases Chat on Slack

Worlds most popular Kubernetes IDE provides a simplified, consistent entry point for developers, testers, integrators, and DevOps, to ship code faster at scale. Lens is the only IDE youll ever need to take control of your Kubernetes clusters. It is a standalone application for MacOS, Windows and Linux operating systems. Lens is an open source project and free!

Screenshot

What makes Lens special?

  • Amazing usability and end-user experience
  • Unified, secure, multi-cluster management on any platform: support for hundreds of clusters
  • Standalone application: no need to install anything in-cluster
  • Lens installs anywhere, elimanting the need to wrangle credentials
  • Real-time cluster state visualization
  • Resource utilization charts and trends with history powered by built-in Prometheus
  • Smart terminal access to nodes and containers
  • Clusters can be local (e.g. minikube) or external (e.g. EKS, GKE, AKS)
  • Performance optimized to handle massive clusters (tested with a cluster running 25k pods)
  • RBAC security is preserved, as Lens uses the standard Kubernetes API
  • Lens Extensions are used to add custom visualizations and functionality to accelerate development workflows for all the technologies and services that integrate with Kubernetes
  • Helm package deployment: Browse and deploy Helm charts with one click-Install

Installation

Download a pre-built package from the releases page. Lens can be also installed via snapcraft (Linux only).

Alternatively on Mac:

brew cask install lens

Development

Prerequisites: Nodejs v12, make, yarn

  • make dev - builds and starts the app
  • make test - run tests

Development (advanced)

Allows for faster separate re-runs of some of the more involved processes:

  1. yarn dev:main compiles electron's main process app part
  2. yarn dev:renderer compiles electron's renderer app part
  3. yarn dev:extension-types compile declaration types for @k8slens/extensions
  4. yarn dev-run runs app in dev-mode and auto-restart when main process file has changed

Development (documentation)

Run a local instance of mkdocs serve in a docker container for developing the Lens Documentation.

Prerequisites: docker, yarn

  • yarn mkdocs-serve-local - local build and serve of mkdocs with auto update enabled

Go to localhost:8000

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/lensapp/lens.