mirror of
https://github.com/lensapp/lens.git
synced 2024-11-11 05:25:25 +03:00
Lens - The way the world runs Kubernetes
484de2ec21
* 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> |
||
---|---|---|
__mocks__ | ||
.github | ||
build | ||
extensions | ||
integration | ||
jsonnet | ||
locales | ||
src | ||
static | ||
test-data | ||
troubleshooting | ||
types | ||
.azure-pipelines.yml | ||
.babelrc | ||
.eslintrc.js | ||
.gitignore | ||
.npmrc | ||
.yarnrc | ||
LICENSE | ||
Makefile | ||
package.json | ||
README.md | ||
RELEASE_GUIDE.md | ||
tsconfig.json | ||
webpack.main.ts | ||
webpack.renderer.ts | ||
yarn.lock |
Lens | The Kubernetes IDE
Lens is the only IDE you’ll 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.
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 appmake test
- run tests
Development (advanced)
Allows for faster separate re-runs of some of the more involved processes:
yarn dev:main
compiles electron's main process app partyarn dev:renderer
compiles electron's renderer app partyarn dev:extension-types
compile declaration types for@k8slens/extensions
yarn dev-run
runs app in dev-mode and auto-restart when main process file has changed
Developer's RTFM recommended list:
- TypeScript (front-end/back-end)
- ReactJS (front-end, ui)
- MobX (app-state-management, back-end/front-end)
- ElectronJS (chrome/node)
- NodeJS (api docs)
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/lensapp/lens.