Alex Andreev 5f416921e9 Parse HPA metrics from different versions (#6971)
* First sketch of hpav2 metrics

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

* HPA metrics initial tests

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

* Receive target Object metrics for v2

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

* External target metrics

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

* Add more types for ObjectMetricStatus

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

* Move metrics parsing from HPA object to separate injectable

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

* Add metric parser for HPA v2

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

* Using metrics parser in hpa list and details

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

* Add more test cases for HPA v2

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

* Add HorizontalPodAutoscalerV1MetricParser

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

* Adding injectable for hpa v1 metric parser

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

* Adding test cases for autoscaling/v1 metrics

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

* Add test cases for hpa beta versions

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

* Check for legacy targetCPUUtilizationPercentage

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

* Fix external metirc parser output

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

* Small clean up

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

* Linter fixes

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

* Removing fallbackApiBases

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

* Remove left comments

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

* Making metric parser classes as not injectable

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

* Fix metrics in hpa details for newer versions

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

* Spreading types to V2 and V2Beta1

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

* Move getMetricName() to its own file

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

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-23 08:22:44 -05:00
2023-01-19 08:24:42 -05:00
2023-01-04 19:18:02 +02:00
2021-04-27 11:24:39 +03:00
2022-06-13 11:00:07 -04:00
2022-08-12 05:17:06 -07:00
2022-06-14 11:22:38 -04:00
2022-10-07 12:24:11 -04:00
2021-03-25 17:19:45 +02:00
2021-06-07 09:51:43 -04:00

Lens Desktop Core ("OpenLens")

Build Status Chat on Slack

The Repository

This repository is where Team Lens develops the core of the Lens Desktop product together with the community.

The core is a library, powered by Electron and React. Unlike generic Electron + React frameworks / boilerplates, it is very opinionated for creating Lens Desktop-like applications and has support for Lens Extensions.

In the future, this library will be streamlined to become more customizable and pluggable with easy to use tooling for Lens Extension developers.

This source code is available to everyone under the MIT license.

Lens Desktop

Lens Desktop is built on top of the Lens Desktop Core with Team Lens built extensions released under a traditional Terms Of Service.

Lens Desktop is a standalone application for MacOS, Windows and Linux operating systems. Get started by downloading it from Lens website.

Screenshot

Development

See Development page.

Contributing

See Contributing page.

License

See License.

Languages
TypeScript 95.8%
SCSS 3%
JavaScript 0.9%
HTML 0.2%