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

518 Commits

Author SHA1 Message Date
Janne Savolainen
39cd31a726 chore: Consolidate ogre-tools versions
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2023-05-03 09:31:24 +03:00
Sebastian Malton
962ecddb3f chore: Fix deployment scale tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-02 10:11:52 -07:00
Sebastian Malton
8461cde200 chore: Fix kube-api tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-02 10:11:52 -07:00
Sebastian Malton
34a721a6f9 chore: Update snapshots for cluster-frame
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-02 10:11:52 -07:00
Sebastian Malton
fd5f912ccf chore: Fix kube-object-list-layout tests to maintain snapshot shape
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-02 10:11:52 -07:00
Sebastian Malton
dcc5495312 chore: Change refactoring of implementation to maintain behaviour
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-02 10:11:52 -07:00
Sebastian Malton
8395c262ad chore: Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-02 10:11:52 -07:00
Sebastian Malton
b4d5732071 chore: Use new typings of metrics components
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-02 10:11:52 -07:00
Sebastian Malton
80458170ad chore: Use new typings for pod columns
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-02 10:11:52 -07:00
Sebastian Malton
1bf24db797 chore: Extract @k8slens/kube-object package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-02 10:11:52 -07:00
Sebastian Malton
576373b16b chore: Extract legacy global di into separate package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-02 10:11:52 -07:00
Jari Kolehmainen
1c23162b58 chore: extract event-emitter from core
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-05-02 17:07:39 +03:00
dependabot[bot]
09aab1b45c chore(deps-dev): Bump @types/marked from 4.0.8 to 4.3.0
Bumps [@types/marked](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/marked) from 4.0.8 to 4.3.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/marked)

---
updated-dependencies:
- dependency-name: "@types/marked"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-02 08:29:38 -04:00
dependabot[bot]
c708f9741a chore(deps-dev): Bump xterm-addon-fit from 0.5.0 to 0.7.0
Bumps [xterm-addon-fit](https://github.com/xtermjs/xterm.js) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/xtermjs/xterm.js/releases)
- [Commits](https://github.com/xtermjs/xterm.js/compare/0.5...0.7)

---
updated-dependencies:
- dependency-name: xterm-addon-fit
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-27 09:25:38 -04:00
dependabot[bot]
6d838aa160 chore(deps): Bump webpack from 5.80.0 to 5.81.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.80.0 to 5.81.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.80.0...v5.81.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-27 09:25:14 -04:00
dependabot[bot]
904106f181 chore(deps-dev): Bump electron from 22.3.6 to 22.3.7
Bumps [electron](https://github.com/electron/electron) from 22.3.6 to 22.3.7.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v22.3.6...v22.3.7)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-27 08:52:29 -04:00
Sebastian Malton
b8abe07177 chore: Update snapshots to match new behaviour
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-26 09:43:47 -04:00
Sebastian Malton
43cedae7b0 fix: Only show Update Channel preferences when applicable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-26 09:43:47 -04:00
Sebastian Malton
a0953df4b1 chore: Flatten file hierarchy
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-26 09:43:47 -04:00
Gabriel
161cfa7d2a chore: extract @k8slens/resizing-anchor
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-04-26 15:40:00 +02:00
dependabot[bot]
4c0aa60993 chore(deps-dev): Bump @types/http-proxy from 1.17.10 to 1.17.11
Bumps [@types/http-proxy](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/http-proxy) from 1.17.10 to 1.17.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/http-proxy)

---
updated-dependencies:
- dependency-name: "@types/http-proxy"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-26 09:28:37 -04:00
dependabot[bot]
14af67b489 chore(deps-dev): Bump @types/node from 16.18.24 to 16.18.25
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.24 to 16.18.25.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-26 09:28:31 -04:00
dependabot[bot]
4981caa05b chore(deps): Bump sass from 1.62.0 to 1.62.1
Bumps [sass](https://github.com/sass/dart-sass) from 1.62.0 to 1.62.1.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.62.0...1.62.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-26 09:28:22 -04:00
dependabot[bot]
525172cd6b chore(deps): Bump tailwindcss from 3.3.1 to 3.3.2
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v3.3.2/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.3.1...v3.3.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-26 09:27:38 -04:00
Sebastian Malton
4379edf0c7 chore: Remove leading '+' on some directory names
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-26 09:26:39 -04:00
Gabriel
7dff8e31a6 chore: extract error-boundary
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-04-26 14:03:30 +02:00
Gabriel
815e9adfca chore: updated deps
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-04-25 17:38:02 -04:00
Gabriel
8c0220c353 fix: observableHistoryInjectionToken and 1 revert for GlobalOverride
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-04-25 17:38:02 -04:00
Iku-turso
db9a3675e1 chore: Extract an injectionToken
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-04-25 17:38:02 -04:00
Gabriel
0dae1594ba fix: removed dependencies: [reactApplicationFeature],
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-04-25 17:38:02 -04:00
Gabriel
b33a8b4960 fix: add routingFeature to getDiForUnitTesting
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-04-25 17:38:02 -04:00
Gabriel
e8c94abc0b feature @k8slens/routing
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-04-25 17:38:02 -04:00
Sebastian Malton
6ae078c91d chore: Add support for using injectionTokens in global overrides
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-25 14:27:30 -04:00
Alex Andreev
3532fc1dab
feat: Adjust container status colors to be distinguable with red/green filter (#7621)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-25 14:05:40 -04:00
dependabot[bot]
f2070a1e4c chore(deps-dev): Bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.59.0 to 5.59.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.59.1/packages/eslint-plugin)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-25 08:20:57 -04:00
Panu Horsmalahti
5f3a7a5873
Display zero minAvailable/maxUnavailable as 0 instead of N/A (#7620)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2023-04-25 15:15:44 +03:00
dependabot[bot]
4024d184fa chore(deps-dev): Bump typedoc from 0.24.5 to 0.24.6
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.24.5 to 0.24.6.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.24.5...v0.24.6)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-25 08:09:36 -04:00
dependabot[bot]
ce6fd21521 chore(deps-dev): Bump @typescript-eslint/parser from 5.59.0 to 5.59.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.59.0 to 5.59.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.59.1/packages/parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-25 08:08:23 -04:00
Sebastian Malton
1c8559013b chore: Add test verifying new notification formatting behaviour
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
bcf95a65f1 fix: Remove incorrect timeout on standard info notifications
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
561d8dbc09 feat: Never auto-close error notifications
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
43f3059c9b test: Fix kube-api-version-detection tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
5dc94f291b chore: Update tests to use more business logic
- To have a higher confidence in the code, given that the old tests didn't save us
  from modifying the code before.

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
bc149f0627 chore: Simplify requestPatchKubeResource impl
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
b90e04e02d fix: Fix selfLink being missing from requestKubeResource
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
5fb08960fe chore: Simplify global overrides of requestKubeResource and requestPatchKubeResource
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
4716dcc434 chore: Rename injectables to remove redundancy
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
6c3e8e83c0 chore: Move files around to flatten hierarchy
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
456d6ae94f Fix: Correct getEditSelfLinkFor to produce correct selfLink
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
3439472065 feat: Improve formatting error messages from apiKube
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
bf6af58d80 fix: Add checks to KubeObject constructor to ensure shape
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
4634643f93 chore: Cleanup formatting of imports
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
Sebastian Malton
2f21ba51d1 chore: Change parseKubeApi into a no-throw version
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-24 10:17:24 -04:00
dependabot[bot]
ff0d21f6a4 chore(deps-dev): Bump eslint from 8.38.0 to 8.39.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.38.0 to 8.39.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.38.0...v8.39.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 08:11:47 -04:00
dependabot[bot]
d3dc43778b chore(deps-dev): Bump typedoc from 0.24.4 to 0.24.5
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.24.4 to 0.24.5.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.24.4...v0.24.5)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 08:11:30 -04:00
dependabot[bot]
955378d86b chore(deps-dev): Bump @swc/core from 1.3.52 to 1.3.53
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.3.52 to 1.3.53.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.3.52...v1.3.53)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 08:11:23 -04:00
Sebastian Malton
3d0b0b7bd1 chore: Fix showing-details-for-helm-release tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-21 14:11:15 -04:00
Sebastian Malton
6741b94220 chore: Fixup kube-object-menu tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-21 14:11:15 -04:00
Sebastian Malton
535bac4df9 chore: Update snapshots after adding new testid
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-21 14:11:15 -04:00
Sebastian Malton
bb5876b39c chore: Add behavioural tests for deleting sub namespaces
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-21 14:11:15 -04:00
Sebastian Malton
89cf491bc0 feat: Add deleting subNamespaces to contextMenu
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-21 14:11:15 -04:00
Sebastian Malton
aa950026a3 feat: Add removing subNamespaces to Namespace route
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-21 14:11:15 -04:00
Sebastian Malton
c5572257bd feat: Introduce injectables to remove subNamespaces
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-21 14:11:15 -04:00
Sebastian Malton
87598fc7d1 chore: Fix spelling of injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-21 14:11:15 -04:00
Sebastian Malton
bdc42901ba chore: Cleanup Namespace.isControlledByHNC
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-21 14:11:15 -04:00
dependabot[bot]
f0e0dd1ba7 chore(deps-dev): Bump memfs from 3.5.0 to 3.5.1
Bumps [memfs](https://github.com/streamich/memfs) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/streamich/memfs/releases)
- [Changelog](https://github.com/streamich/memfs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/streamich/memfs/compare/v3.5.0...v3.5.1)

---
updated-dependencies:
- dependency-name: memfs
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-21 09:44:16 -04:00
Sebastian Malton
d984e9e305 chore: Fix unit tests failing due to using require.context in unit tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-20 10:58:08 -04:00
Jari Kolehmainen
e7b8e63053 chore: Move resource templates to @k8slens/resource-templates
- Switch to using webpack to bundle the templates instead of electron-builder

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-20 10:58:08 -04:00
dependabot[bot]
7ed2e83493 chore(deps-dev): Bump @types/node from 16.18.23 to 16.18.24
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.23 to 16.18.24.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-20 10:22:16 -04:00
Sebastian Malton
6528ce5215 Release 6.5.0-alpha.8
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-20 09:44:57 -04:00
Gabriel
ee4fbc37cc replaced with export from @k8slens/button to maintain backwards compatibility
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-04-20 09:02:46 -04:00
Gabriel
76c11aa697 fix: lint:fix
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-04-20 09:02:46 -04:00
Gabriel
5128730fd2 chore: extract button from core for error-boundary
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-04-20 09:02:46 -04:00
Panu Horsmalahti
63ad14d5d1 List more than 256 helm releases.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2023-04-20 09:02:08 -04:00
Sami Tiilikainen
5eb41e8a6c
List layout column injection token package (#7544)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-04-20 09:01:50 -04:00
dependabot[bot]
4f4c7e7b56 chore(deps-dev): Bump postcss from 8.4.22 to 8.4.23
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.22 to 8.4.23.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.22...8.4.23)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-20 09:00:49 -04:00
dependabot[bot]
7747277af6 chore(deps): Bump webpack from 5.79.0 to 5.80.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.79.0 to 5.80.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.79.0...v5.80.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-20 09:00:39 -04:00
dependabot[bot]
e712922aeb chore(deps-dev): Bump @swc/core from 1.3.51 to 1.3.52
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.3.51 to 1.3.52.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.3.51...v1.3.52)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-20 09:00:20 -04:00
Sebastian Malton
5d9cdee31f docs: Fix initial warnings from generating API docs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-19 12:42:37 -04:00
Sebastian Malton
98c371ef0c chore: Bump typedoc and typedoc-plugin-markdown
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-19 12:42:37 -04:00
Sebastian Malton
9cafc8e6b1 chore: Fix spelling in ResizingAnchorProps
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-19 09:21:04 -04:00
Gabriel
01059d8cb1 chore: extract tooltip into package
- chore: add sanity check unit test
- chore: added tailwind.config.js to fix build
- chore: .swcrc added for tests to pass
- chore(deps): sass is not a dependency
- fix: manually import the tooltip css to fix tooltips not showing up
- chore: Run lint:fix against code
- chore: Fix use of mock in @k8slens/core

Signed-off-by: Gabriel <gaccettola@mirantis.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-19 09:21:04 -04:00
dependabot[bot]
768b6ffc8c
chore(deps-dev): Bump electron from 22.3.5 to 22.3.6 (#7577)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-19 08:30:45 +03:00
Sebastian Malton
efa1853960 Release 6.5.0-alpha.7
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 11:50:13 -04:00
dependabot[bot]
095a38b36b chore(deps-dev): Bump postcss from 8.4.21 to 8.4.22
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.21 to 8.4.22.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.21...8.4.22)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 09:57:56 -04:00
dependabot[bot]
f26d71fbe4 chore(deps-dev): Bump webpack-dev-server from 4.13.2 to 4.13.3
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.13.2 to 4.13.3.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.13.2...v4.13.3)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 09:57:39 -04:00
Sebastian Malton
eafd1efbc0 chore: Remove InitializableState for loosing competition
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:40 -04:00
Sebastian Malton
353da78d4b chore: Switch defaultUpdateChannel to not use Initializable at all
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:40 -04:00
Sebastian Malton
53920a7046 chore: Switch semanticBuildVersion to not use Initializable at all
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:40 -04:00
Sebastian Malton
fc18c61d36 chore: Switch releaseChannel to not use Initializable at all
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:40 -04:00
Sebastian Malton
6fa9e2cde6 chore: Switch semanticBuildVersion to use new Initializable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:40 -04:00
Sebastian Malton
8a3e204e74 chore: Allow specifying runnable phase directly from runAfter
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:40 -04:00
Sebastian Malton
1b96a94c14 chore: Switch buildVersion to use new Initializable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:40 -04:00
Sebastian Malton
72a01cdc17 chore: Introduce competition for InitializableState
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:40 -04:00
Sebastian Malton
82fdcf69c0 chore: Add log line for current version at start of application
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:40 -04:00
Sebastian Malton
bfb2b8e659 fix: change class name behaviour to limit snapshot diffs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:20 -04:00
Sebastian Malton
fef789bd49 chore: Expose api to only bundled extensions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:20 -04:00
Sebastian Malton
ebc63091a1 chore: Revert exposing api to legacy extension API
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:20 -04:00
Sebastian Malton
06a0dce612 feat: Introduce API for changing the status bar colour
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-18 08:16:20 -04:00
Jari Kolehmainen
f6977428da fix(core): hide update button if downloading of an update fails
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-04-18 15:10:11 +03:00
Alex Andreev
3baa42e17b
New resource view: ValidatingWebhookConfigurations (#7552)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-18 13:47:41 +03:00
Sebastian Malton
45a99d6c10 chore: Bump monaco-editor-webpack-plugin to fix build
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-14 16:08:34 -04:00
dependabot[bot]
780820acfc chore(deps-dev): Bump monaco-editor from 0.29.1 to 0.37.1
Bumps [monaco-editor](https://github.com/microsoft/monaco-editor) from 0.29.1 to 0.37.1.
- [Release notes](https://github.com/microsoft/monaco-editor/releases)
- [Changelog](https://github.com/microsoft/monaco-editor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/microsoft/monaco-editor/compare/v0.29.1...v0.37.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 16:08:34 -04:00
dependabot[bot]
11f4c91920 chore(deps-dev): Bump @swc/jest from 0.2.24 to 0.2.26
Bumps [@swc/jest](https://github.com/swc-project/jest) from 0.2.24 to 0.2.26.
- [Release notes](https://github.com/swc-project/jest/releases)
- [Commits](https://github.com/swc-project/jest/compare/v0.2.24...v0.2.26)

---
updated-dependencies:
- dependency-name: "@swc/jest"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 15:50:48 -04:00
dependabot[bot]
b9ed722dd0 Bump typedoc from 0.23.25 to 0.24.1
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.25 to 0.24.1.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.25...v0.24.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 15:50:27 -04:00
Sebastian Malton
58ad63bb40 chore: Change version of @k8slens/kubectl-versions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-14 14:42:00 -04:00
Sebastian Malton
0bd7b1fe92 feat: Compute the kubectl download version map at build time
- Allows for bundled kubectl config to be changed without code changes

- Introduce @k8slens/kubectl-versions

  - Compile time fetching of versions

- Update @swc/* packages

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-14 14:42:00 -04:00
Sebastian Malton
1e0cb9fc14 chore: Update lockfile to fix CI
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-13 11:13:26 -04:00
Sebastian Malton
5198cb6f27 chore: Fix unit tests failing due to bug in cycle detection
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-13 11:13:26 -04:00
Sebastian Malton
35c3d31f2a chore: Fix lint for @k8slens/application
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-13 11:13:26 -04:00
Sebastian Malton
1c48dda707 chore: Bump @ogre-tools/* to 15.3.1 and fixup telemetry decorator
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-13 11:13:26 -04:00
Sebastian Malton
672ddc7b8d chore: Convert show-details telemetry to instantiationDecoratorToken
- Fix bug about throwing error on some calls to showDetails

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-13 11:13:26 -04:00
Sebastian Malton
ba8f7f916d chore: Upgrade versions of @ogre-tools/* to 15.3.0
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-13 11:13:26 -04:00
Sebastian Malton
6f59e1feb6 Release 6.5.0-alpha.6
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:49:30 -04:00
Sebastian Malton
9080725259 chore: Disable hiding exit code from e2e tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:15:36 -04:00
Sebastian Malton
48ebda2f06 chore: add better overrides for app and autoUpdater
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:15:36 -04:00
Sebastian Malton
6c91224b17 Fix: Close current connections to LensProxy on quit
- This speeds up quitting

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:15:36 -04:00
Sebastian Malton
2c4a7ecfb4 chore: Replace all uses of stopServicesAndExitApp with requestQuitOfApp
- Also updated tests with new behaviour

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:15:36 -04:00
Sebastian Malton
4ff3186ca7 chore: Move logging on quit to runnable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:15:36 -04:00
Sebastian Malton
1581da458d chore: Move disconnecting cluster connections to own runnable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:15:36 -04:00
Sebastian Malton
980b054fad chore: Remove closing windows on quit
- Electron does this already

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:15:36 -04:00
Sebastian Malton
9d181ab6ab chore: Move stopping extensions to own runnable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:15:36 -04:00
Sebastian Malton
c0eb4c6dea chore: Split setupRunnablesBeforeClosingOfApplication
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:15:36 -04:00
Sebastian Malton
802cbdb096 chore: Rename exitApp to forceAppExit
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:15:36 -04:00
Sebastian Malton
8ee65f841e chore: Move is auto updating state to own injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:15:36 -04:00
Sebastian Malton
a81b0f961e chore: Rename tokens to be more correct
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 15:15:36 -04:00
Sebastian Malton
d991838893 Release 6.5.0-alpha.5
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 14:36:13 -04:00
Sebastian Malton
de36379a81 Release 6.5.0-alpha.4
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-12 09:06:17 -04:00
Juho Heikka
53cb3a5d38
Add metrics Feature (#7507)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-12 14:40:00 +03:00
Henry Chen
01cc0186e5
Set status item padding-inline to 0 if there is no children elements (#7529)
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
2023-04-12 09:46:23 +03:00
Alex Andreev
2ada830418 Fix table header
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
03632626ce Clean up mutating webhook configs api
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
88f832012d Add styles for details panel
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
6564f89db8 Removing <b> tags
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
61602d9628 Customize search input placeholder
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
dbd480212d Add Rules details item
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
a3a16c42c9 Add namespace selector
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
86eda1d751 Set mutatingwebhookconfigs as cluster-scoped
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
f00c6129d7 Add object selector details item
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
a308320dd6 Remove namespace and labels columns
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
02e24735b8 Fix webhook field scoping
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
9c2884a671 Change sidebar link parent to Config item
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
78f9c2ec07 Add rbac rules
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
07d5ddfda8 Add detail item injectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
849e2b6397 Add index.ts for exporting list and details
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
afd7413849 Add mutatingWebhookConfigurationsRouteComponentInjectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
66252f068d Add more fields to details panel
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
831c1f1d1e Webhook Config initial details page
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
c6b1306d9a Adding webhook sidebar items injectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
18ea6c2a4f Adding webhook list and store
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
1d96760a3a Adding mutating-webhook-configuration.api export to endpoints index.ts file
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
34f7b2f6b1 Adding routes and navigate-to injectables
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
704a642276 Add mutatingWebhookConfigurationApiInjectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +03:00
Alex Andreev
626fe1a890 Add MutatingWebhookConfiguration api
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-11 15:10:26 +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
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
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
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
Alex Andreev
2cf8a2f188
Add workload 'kind' param to 'show-details' event (#7464)
* Introduce getWorkloadKindFromUrl() method

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

* Whitelist kind param to 'show-details' event

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

* Using parseKubeApi instead of new utility

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

* Adding checks for empty selfLink

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

---------

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-04-04 09:59:36 +03:00
dependabot[bot]
df9db01be5
Bump ansi_up from 5.1.0 to 5.2.1 (#7497)
Bumps [ansi_up](https://github.com/drudru/ansi_up) from 5.1.0 to 5.2.1.
- [Release notes](https://github.com/drudru/ansi_up/releases)
- [Commits](https://github.com/drudru/ansi_up/compare/v5.1.0...v5.2.1)

---
updated-dependencies:
- dependency-name: ansi_up
  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 09:55:46 +03:00
dependabot[bot]
7116e55d5a
Bump @typescript-eslint/parser from 5.55.0 to 5.57.1 (#7496)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) 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/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.57.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  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 09:25:09 +03:00
Gabriel Accettola
e790757302
Show Message Box when no update is available after manually checking for updates (#7390)
* no updates available

Signed-off-by: Gabriel <gaccettola@mirantis.com>

* lint fix

Signed-off-by: Gabriel <gaccettola@mirantis.com>

* lint padding-line-between-statements

Signed-off-by: Gabriel <gaccettola@mirantis.com>

* test stubs - wip

Signed-off-by: Gabriel <gaccettola@mirantis.com>

* tray - when no new update is discovered showMessagePopupMock toHaveBeenCalled & toHaveBeenCalledWith

Signed-off-by: Gabriel <gaccettola@mirantis.com>

* fake tray and fake menu parity

Signed-off-by: Gabriel <gaccettola@mirantis.com>

* tray and menu passing tests and lint

Signed-off-by: Gabriel <gaccettola@mirantis.com>

---------

Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-04-03 15:36:25 -04:00
Juho Heikka
fef9443064
Fix node metrics line progress (#7466)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-03 16:12:35 +03:00
dependabot[bot]
47796228d0
Bump @types/react-beautiful-dnd from 13.1.3 to 13.1.4 (#7459)
Bumps [@types/react-beautiful-dnd](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-beautiful-dnd) from 13.1.3 to 13.1.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-beautiful-dnd)

---
updated-dependencies:
- dependency-name: "@types/react-beautiful-dnd"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 08:28:49 -04:00
dependabot[bot]
8872b2f94a
Bump playwright from 1.31.2 to 1.32.1 (#7460)
Bumps [playwright](https://github.com/Microsoft/playwright) from 1.31.2 to 1.32.1.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.31.2...v1.32.1)

---
updated-dependencies:
- dependency-name: playwright
  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-03 08:28:29 -04:00
dependabot[bot]
9d1464c39a
Bump webpack-dev-server from 4.11.1 to 4.13.2 (#7457)
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.11.1 to 4.13.2.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.11.1...v4.13.2)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  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-03 08:27:35 -04:00
Juho Heikka
a73586d844
Fix metrics visibility logic (#7465)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-04-03 08:06:53 -04:00
Panu Horsmalahti
3b8ef07a9e
conf v10.2.0 (#7462)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2023-04-03 13:44:57 +03:00
Sebastian Malton
b5a085b55c
Get dev mode fixed (#7447)
* Get dev mode fixed

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

* Add empty scripts for windows to satisfy run-script-os

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

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-31 15:30:21 -04:00
Sebastian Malton
fe2fd4c1fd
Move Cluster.apiUrl to seperate injectable (#7354)
* Refactor out Cluster.apiUrl to direct reading

- Should help prevent using stale data

- Removes some uses of synchronous FS operations

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

* Fix type errors

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

* Rename helper function to better communicate intent

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

* Improve prometheus handler tests to override less things

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

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-31 15:28:14 -04:00
Sebastian Malton
18d660ea77
Add temporal dependency to initializeExtensions (#7454)
- So that extensions can ensure that the shell env is up to date

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-31 14:33:05 -04:00
Sebastian Malton
9b8d6e4e44
Fix crash due to non base64 encoded secrets (#7448)
* Fix crash due to non base64 encoded secrets

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

* Update snapshot

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

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-31 14:21:40 -04:00
Sebastian Malton
908a3cabe1
Close Lens Proxy on quit of backend (#7453)
- Extract global shared state of shell sessions

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-31 14:21:31 -04:00
Sebastian Malton
2884dea195
Fix app crash on quit (#7407) (#7452)
* Fix app crash on quit (#7407)

* Fix app crash on quit

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

* Back out disabling extensions on quit

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

---------

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

* Fixup cherry-pick

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

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-31 14:21:07 -04:00
Sebastian Malton
a0fea20300
Stop all extensions before quitting app (#7450)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-31 13:37:29 -04:00
Jim Ehrismann
37c92c8fd1
Make ServiceAccount kubeconfig context name differ from cluster context name (#7433)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2023-03-31 10:37:59 -04:00
dependabot[bot]
799c120407
Bump rimraf from 4.4.0 to 4.4.1 (#7406)
Bumps [rimraf](https://github.com/isaacs/rimraf) from 4.4.0 to 4.4.1.
- [Release notes](https://github.com/isaacs/rimraf/releases)
- [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/rimraf/compare/v4.4.0...v4.4.1)

---
updated-dependencies:
- dependency-name: rimraf
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 09:09:58 -04:00
dependabot[bot]
67dc74530b
Bump @swc/core from 1.3.40 to 1.3.44 (#7439)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.3.40 to 1.3.44.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.3.40...v1.3.44)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 14:14:04 +03:00
Jari Kolehmainen
7bae712703
wait app to be ready before creating a BrowserWindow for system proxy resolver (#7443)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-03-31 13:33:13 +03:00
Janne Savolainen
b5e564271e
Extract React Application as a Feature (#7441)
* Fix webpack config for react

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

* Introduce package for discovering html elements in unit tests

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

* Switch to using discovery of html elements from package

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

* Introduce competition for starting react application inside the Feature

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

* Move stuff in application start to earlier timeslot having no real need to be done so late

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

* Switch to using react application root feature being more friendly to extending

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

* Switch to using more familiar pattern of higher order components for wrapping react application

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

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

* Adapt to more familiar pattern for higher order components

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

* Rename feature for clarity

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

---------

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2023-03-31 11:57:20 +03:00
dependabot[bot]
5827fc9d9a
Bump webpack and @types/webpack (#7438)
Bumps [webpack](https://github.com/webpack/webpack) and [@types/webpack](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/webpack). These dependencies needed to be updated together.

Updates `webpack` from 5.76.1 to 5.77.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.76.1...v5.77.0)

Updates `@types/webpack` from 5.28.0 to 5.28.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/webpack)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: "@types/webpack"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 10:41:45 +03:00
Jim Ehrismann
d8c485a79f
Restore disk metrics to PersistentVolumeClaim details page (#7427)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2023-03-29 07:40:22 -04:00