1
0
mirror of https://github.com/lensapp/lens.git synced 2024-11-11 05:25:25 +03:00
Lens - The way the world runs Kubernetes
Go to file
chh 484de2ec21
Add +/- buttons in scale deployment popup screen (#1191)
* Add @testing-library/jest-dom and @testing-library/react for writing test cases

* Make eslint check __mocks__/*.ts files

* Mock electron.ipcRenderer.on to prevent errors in React compoment test cases

* Mock <Trans /> from @lingui/macro as a component simplely returns children components

* Use optional chaining operator (?.) to avoid TypeError: Cannot read property 'replicas' of undefined

* Add jest-fetch-mock for mocking global.fetch, activate for all test cases in jest.setup.ts

* Add basic tests for <DeploymentScaleDialog /> to ensure it initialises/renders without errors

* Add +/- button for changing desired replicas, and its test cases

* Adjust the styles of +/- buttons container to make sure it aligns with the slider

* Refactor after rebase from master

* Use var defined in vars.scss

* Add flex align-center to slider-container and remove margin-top: -4px

* Use <Icon /> to replace <i/>

* Add flex gaps to plus-minus-container

Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
2020-11-03 20:30:36 +08:00
__mocks__ Add +/- buttons in scale deployment popup screen (#1191) 2020-11-03 20:30:36 +08:00
.github Add actions/labeler for auto label PRs (#1193) 2020-11-02 21:37:14 +08:00
build Tray icon (#1005) 2020-10-27 15:25:29 +02:00
extensions Release v4.0.0-alpha.3 (#1197) 2020-11-03 08:05:23 +02:00
integration Tray icon (#1005) 2020-10-27 15:25:29 +02:00
jsonnet Fix serviceMonitorKubelet's metricRelabelings (#225) 2020-04-10 11:05:18 +03:00
locales Tray icon (#1005) 2020-10-27 15:25:29 +02:00
src Add +/- buttons in scale deployment popup screen (#1191) 2020-11-03 20:30:36 +08:00
static Release v4.0.0-alpha.3 (#1197) 2020-11-03 08:05:23 +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 Added additional checks on the command used in the Exec plugin in a kubeconfig (#1013) 2020-10-12 10:20:08 +03:00
.azure-pipelines.yml publish npm package via pipeline on release (#1158) 2020-10-27 17:06:56 +02:00
.babelrc Lens restructure (#540) 2020-06-30 14:35:16 +03:00
.eslintrc.js Add +/- buttons in scale deployment popup screen (#1191) 2020-11-03 20:30:36 +08:00
.gitignore Extension support page (#1112) 2020-10-24 09:24:54 +03: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 Release v4.0.0-alpha.1 (#1159) 2020-10-27 21:54:08 +02:00
package.json Add +/- buttons in scale deployment popup screen (#1191) 2020-11-03 20:30:36 +08:00
README.md Tray icon (#1005) 2020-10-27 15:25:29 +02:00
RELEASE_GUIDE.md Document release process (#532) 2020-06-30 15:22:20 +03:00
tsconfig.json Extensions loading (#795) 2020-09-09 13:00:25 +03:00
webpack.main.ts Improve how extension-api is exposed/loaded (#1055) 2020-10-09 14:12:40 +03:00
webpack.renderer.ts Extension support page (#1112) 2020-10-24 09:24:54 +03:00
yarn.lock Add +/- buttons in scale deployment popup screen (#1191) 2020-11-03 20:30:36 +08:00

Lens | The Kubernetes IDE

Build Status Releases Chat on Slack

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. It is open source and free.

Screenshot

What makes Lens special?

  • Amazing usability and end-user experience
  • Multi cluster management: support for hundreds of clusters
  • Standalone application: no need to install anything in-cluster
  • Real-time cluster state visualization
  • Resource utilization charts and trends with history powered by built-in Prometheus
  • Terminal access to nodes and containers
  • Performance optimized to handle massive clusters (tested with a cluster running 25k pods)
  • Full support for Kubernetes RBAC

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 init - initial compilation, installing deps, etc.
  • 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

Contributing

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