1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

3668 Commits

Author SHA1 Message Date
Juho Heikka
0e0b54b2e2 Make details metrics a computed value.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-11 15:39:06 +03:00
Juho Heikka
f858637b96 Add comment for moving ui blocks to own package
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-11 11:45:22 +03:00
Juho Heikka
a1b2f08648
Merge branch 'master' into metrics-extraction 2023-04-11 10:50:25 +03:00
Juho Heikka
163118402d Make Cluster overview UI blocks computed value
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-11 10:49:53 +03:00
Juho Heikka
fc463b7d59 Update package-lock.json
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-11 10:48:53 +03:00
dependabot[bot]
9ea01a4062 Bump immer from 9.0.19 to 9.0.21
Bumps [immer](https://github.com/immerjs/immer) from 9.0.19 to 9.0.21.
- [Release notes](https://github.com/immerjs/immer/releases)
- [Commits](https://github.com/immerjs/immer/compare/v9.0.19...v9.0.21)

---
updated-dependencies:
- dependency-name: immer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-06 10:10:09 -04:00
dependabot[bot]
aaaf982ed7 Bump @typescript-eslint/eslint-plugin from 5.55.0 to 5.57.1
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.55.0 to 5.57.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.57.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-06 10:09:40 -04:00
Sebastian Malton
c9cd1cd8e0 chore: Update snapshots due to behaviour changes
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-06 09:05:27 -04:00
Sebastian Malton
82bf67cc9e chore: Simplify extension dependency injection
- Has better typing
- Removes use of unnusual unique symbol
- Fix welcome banner tests
    - Update associated snapshots
- Start converting custom column tests to use ApplicationBuilder
- Remove old and unnused RecursiveTreeView
- Introduce new TreeView for use in CatalogMenu to fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-06 09:05:27 -04:00
Juho Heikka
9ff084a684 Lint fixes after changed prettier config
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-06 15:49:12 +03:00
Juho Heikka
e0040e1c1c
Merge branch 'master' into metrics-extraction 2023-04-06 15:46:54 +03:00
Juho Heikka
a8fd71e298 Add missing packages to metrics package.json
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-06 15:35:39 +03:00
Juho Heikka
07b4e30ddd Remove unnecessary variable from init containers component
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-06 14:39:14 +03:00
Juho Heikka
8e4774ea29 Update metrics package description
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-06 14:09:47 +03:00
Sebastian Malton
5db8fc1342 chore: Remove explicit throw when finding platformSpecificVersion
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 16:17:50 -04:00
Sebastian Malton
c0ebe605c4 fix: Fix tests by recreating non-specific injection token
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 16:17:50 -04:00
Sebastian Malton
477ad3caa4 chore: fix lint for main webpack
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 16:17:50 -04:00
Sebastian Malton
3c8839151c chore: move test-env specific versions to own folder
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 16:17:50 -04:00
Sebastian Malton
5fc32c0b27 chore: convert request-system-cas to use PlatformSpecific
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 16:17:50 -04:00
Sebastian Malton
75a1b0a983 chore: move PlatformSpecific back to core
- This is needed in 6.4 and this will make that transition easier

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 16:17:50 -04:00
Sebastian Malton
0bc3d9f8b2 feat: Introduce PlatformSpecific as a new wrapper type for injectables
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 16:17:50 -04:00
Sebastian Malton
9b0318b493 fix: remove platform specific injectable file names
- Causes issues due to a single platform being used to build the library

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 16:17:50 -04:00
Sebastian Malton
630928d6ba chore: fix spelling
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 16:17:50 -04:00
Sebastian Malton
15d3829319 Fix cherry-pick of #7504
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 14:41:38 -04:00
dependabot[bot]
87453b2f14 Bump joi from 17.8.4 to 17.9.1
Bumps [joi](https://github.com/hapijs/joi) from 17.8.4 to 17.9.1.
- [Release notes](https://github.com/hapijs/joi/releases)
- [Commits](https://github.com/hapijs/joi/compare/v17.8.4...v17.9.1)

---
updated-dependencies:
- dependency-name: joi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-05 13:49:18 -04:00
Janne Savolainen
a3716baaf0 Stop file system watchers on application quit to prevent exit code !== 0 (#7504)
* fix: Dispose the kubeconfig watcher when application quits

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* fix: Dispose the extension watcher when application quits

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

---------

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2023-04-05 13:35:13 -04:00
Sebastian Malton
807f98ed1b
Persist apiVersion when editing resources in monaco (#4406)
* Persist apiVersion when editing resources in monaco

- Use a new custom k8slens prefixed label

- Means that users aren't surprised when they use lens to update a
  resource to a new apiVersionWithGroup

- Doesn't touch the versions in the stores

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

* Fix lint

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

* fix: Fix lint issues

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

* chore: make lint not bail on failure

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

* chore: Run lint:fix on all files

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

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 10:56:23 -04:00
Sebastian Malton
058494bc73
Introduce clearer boundry between extensions (#7164)
- Bundled extensions are always enabled, and are always compatible
- Have bundled extensions be loaded asyncronously to support
  typescript dynamic import (which is typed) as opposed to require

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 10:21:38 -04:00
Sebastian Malton
351f9d492f
fix: Referencing apiManager should not throw (#7468)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 10:17:35 -04:00
Sebastian Malton
128b05d4d4
feat: Allow built versions to specify an environment (#7495)
* feat: Allow built versions to specify an environment

- This should be hard coded at build time

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

* chore: Add default value to open-lens

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

* chore: Add  --no-bail to test script invocations

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

* chore: Add tests for coverage of new code

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

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-05 10:17:21 -04:00
Juho Heikka
afd64df112 Update package-lock.json
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:17:07 +03:00
Juho Heikka
7e06047835 Remove duplicate package import
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:07:42 +03:00
Juho Heikka
d13c5fad00 Add ingress details metrics injection token.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:33 +03:00
Juho Heikka
e725e416ea Add daemonset details metrics injection token.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:32 +03:00
Juho Heikka
0339870631 Add job details metrics injection token.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:32 +03:00
Juho Heikka
d4392520d8 Rename details injectables file suffixes from tsx to ts
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:32 +03:00
Juho Heikka
669e6414ca Add namespace details metrics injection token.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:32 +03:00
Juho Heikka
275a9f7f55 Add stateful set details metrics injection token.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:32 +03:00
Juho Heikka
21df918f12 Refactor repeating code into a separate function.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:32 +03:00
Juho Heikka
ecd8af3892 Add persistent volume claim details metrics injection token.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:32 +03:00
Juho Heikka
8adebb6cd5 Add replicaset details metrics injection token.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:32 +03:00
Juho Heikka
fdff10a3bd Add node details metrics injection token.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:31 +03:00
Juho Heikka
4401b17af9 Add deployment details metrics injection token
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:31 +03:00
Juho Heikka
03a87f9549 Extract pod container metrics to its own injection token.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:31 +03:00
Juho Heikka
be0028cc5e Add pod details metrics injection token.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 16:01:26 +03:00
Juho Heikka
66f3cc8bcf Add cluster UI block injection token and current implementation as a Feature
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-05 15:59:27 +03:00
dependabot[bot]
af1808dbb3
Bump @ogre-tools/injectable-extension-for-mobx from 15.1.2 to 15.3.0 (#7503)
Bumps [@ogre-tools/injectable-extension-for-mobx](https://github.com/ogre-works/ogre-tools) from 15.1.2 to 15.3.0.
- [Release notes](https://github.com/ogre-works/ogre-tools/releases)
- [Changelog](https://github.com/ogre-works/ogre-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ogre-works/ogre-tools/compare/v15.1.2...v15.3.0)

---
updated-dependencies:
- dependency-name: "@ogre-tools/injectable-extension-for-mobx"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-05 10:04:55 +03:00
dependabot[bot]
1e6c859539
Bump tailwindcss from 3.2.7 to 3.3.1 (#7458)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.2.7 to 3.3.1.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.2.7...v3.3.1)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-04 08:14:55 -04:00
Sami Tiilikainen
69b132300c
Renderer file logging through IPC (#7499)
* Renderer file logging through IPC

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove pagehide event listener as it may cause UI to freeze

Pagehide was needed in cluster frame to better handle main frame close/reload situation. But even empty pagehide listener in cluster frame seems to freeze the UI at least on some situations (multiple clusters open).

Beforeunload is not always executed in cluster frame when main frame is reloaded/closed, leaving log files open. To fix that, `stopIpcLoggingInjectable` is introduced to close all log files.

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove unnecessary formatting changes

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Lint fix

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Winston logger override

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove usage of doGeneralOverrides as it has been removed

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Update imports to match the new base

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove unnecessary id

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Review improvements

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Extract beforeunload listener to injectable

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Typo fix

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Behavioural tests and log file rename

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Update messaging to work with new base

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Move files to feature

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

---------

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
2023-04-04 08:11:06 -04:00
Sebastian Malton
173a667466
Auto cancel stale workflows (#7494)
* chore: rename workflow file

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

* chore: Add concurrency rules for workflows

- test
- Electronegativity
- linter

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

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-04 07:33:18 -04:00