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

3270 Commits

Author SHA1 Message Date
Sebastian Malton
8c82cbde79 Reformat enabling extensions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-22 15:22:36 -05:00
Sebastian Malton
e7b7a169b2 Fix integration tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-22 14:45:17 -05:00
Sebastian Malton
ca7c3c1284 Fix getTrayIconPath when built
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:30:26 -05:00
Sebastian Malton
2f1edc0c0b Fix application blanking on cluster disconnect
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:05:04 -05:00
Sebastian Malton
bcc5e871ad Remove log
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:05:03 -05:00
Sebastian Malton
769180664e Get cluster frame to work
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:05:03 -05:00
Sebastian Malton
c615b77ac5 Get loading the main page to work
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:05:03 -05:00
Sebastian Malton
03a3adf3bc Fix build
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:43 -05:00
Sebastian Malton
9266121afa Fix typings of selfsigned
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:43 -05:00
Sebastian Malton
7df0f098f1 Add TLS support
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:42 -05:00
Sebastian Malton
7708e662e1 Introduce initial authorization attempt for SHELLs and KUBECTL
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:16 -05:00
Sebastian Malton
2e6ced456d Rename Router -> routeRequest to better fit actual shape
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:16 -05:00
Sebastian Malton
e851a45643 Fix bug about wrong type for create kube resource
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:16 -05:00
Sebastian Malton
dbae65b488 Rename injectable file to be better name
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:16 -05:00
Sebastian Malton
a8856861f1 Fix change to get metrics route signature
- The change was responding with an error instead of an empty response

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:16 -05:00
Sebastian Malton
c0e17f9482 Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:16 -05:00
Sebastian Malton
d8ab73d769 Fix Router tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:16 -05:00
Sebastian Malton
77e529f6b2 Fix context handler tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:16 -05:00
Sebastian Malton
cdaba4a4e8 Fix cluster frame tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:16 -05:00
Sebastian Malton
f49676ebb0 Add authentication header automatically to apiBase and apiKube
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:16 -05:00
Sebastian Malton
4662d1a36a Add injecting authentication header automatically to some places
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:16 -05:00
Sebastian Malton
a5dab8549b Introuduce auth header value and retrieval on renderer
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:16 -05:00
github-actions[bot]
6781b4657f
Update version to next preminor (#6810)
Signed-off-by: GitHub <noreply@github.com>

Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: Nokel81 <Nokel81@users.noreply.github.com>
2022-12-21 15:03:48 -05:00
Sebastian Malton
6aee907dc5
Release 6.3.0 (#6804)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 12:57:53 -05:00
Sebastian Malton
2000d9b32e
Massively simplify bundled extension loading (#6787)
* Switch bundled extension declarations to injection token

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

* Change how bundled extensions are loaded

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

* Fix token file name

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

* Fix spelling

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

* Improve interface name

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 16:46:51 +02:00
Sebastian Malton
a83259b70a
Make request-api-resources flatter in implementation (#6802)
* Make request-api-resources flatter in implementation

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

* More improvements to requestApiResources
- Also move files to better places

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

* Rename iter.pipeline as iter.chain

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 16:31:31 +02:00
Sebastian Malton
4dac9a8b2b
Fix broken import after PR merge (#6803)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-20 11:07:29 -05:00
Sebastian Malton
24240655c0
Split out use of httpsProxy preference (#6771)
* Split out use of httpsProxy preference

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

* Rename file

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-20 11:00:15 -05:00
Sebastian Malton
443081493b
Fix allowed resources checks on GKE (#6657)
* Add check for incomplete SelfSubjectRulesReview to fix GKE

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

* Adding namespaced for KubeApiResource

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

* Refactoring of AuthorizationNamespaceReview

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

* Removing dead code

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

* Refactoring ListApiResources

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

* Extract ClusterContext into deps for KubeObjectStore to fix circular import

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

* Fix remaining type errors

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

* Fix crash in frame by consolidating setup into runnables

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

* Fix type errors and remove dead code

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

* Fix core resources not showing up

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

* Fix namespaces not being shown

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

* Simplify ClusterContext to remove something only NamespaceStore needs

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

* Make sure the public API doesn't change

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

* Fix lint

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

* Fixing namespace-select-filter tests

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

* Fix other tests requiring overrides

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

* Fix kludge in cluster-frame tests

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

* Fix remaining test failures

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

* Fix integration test due to incorrect casting

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

* Fix integration test and kube watches not working at all

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

* Fix secret details test

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

* Fix lint

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

* Fix non-ApplicationBuilder tests by adding overrides

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

* Fix crash due to trying to read hostedCluster too soon

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

* Fix crash due to timing issues
- Make injectable phases more explicit for renderer

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-20 17:20:27 +02:00
Sami Tiilikainen
e36f3d2d70
Navigation logging injectable (#6797)
Move navigation logging to `setupLoggingForNavigationInjectable` to prevent cycle of injectables from occurring. Wasn't eventually needed for #6795 but still an improvement.

Credit for the implementation goes to @Nokel81 , thanks!

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

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
2022-12-20 08:38:20 -05:00
dependabot[bot]
257582df76
Bump typedoc from 0.23.22 to 0.23.23 (#6792)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.22 to 0.23.23.
- [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.22...v0.23.23)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-20 08:38:04 -05:00
dependabot[bot]
6ce7e8ee53
Bump sass from 1.57.0 to 1.57.1 (#6793)
Bumps [sass](https://github.com/sass/dart-sass) from 1.57.0 to 1.57.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.57.0...1.57.1)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-20 08:37:43 -05:00
dependabot[bot]
e762d07cf8
Bump esbuild from 0.16.9 to 0.16.10 (#6790)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.16.9 to 0.16.10.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.16.9...v0.16.10)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-20 08:37:32 -05:00
Alex Andreev
5dde02733b
Fix: load pods from all namespaces in node details (#6794)
* Load pods from all namespaces in Node details

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

* Lint fixes

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

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-20 16:34:43 +03:00
Sebastian Malton
ed26e245e6
Prevent shell sync commands from polluting history (#6668)
* Prevent shell sync commands from polluting history

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

* Fix tests

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-20 08:33:48 -05:00
Sebastian Malton
8db81a4731
Remove in-tree extensions to help facilitate a more secure and faster booting lens (#6775)
* Remove kube-object-event-status extension

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

* Remove cluster-metrics-feature intree extension

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

* Remove lens-node-menu intree extension

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

* Remove lens-pod-menu intree extension

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

* Remove building extensions as part of build

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

* Remove integration test touching previously bundled code

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-20 07:53:33 -05:00
dependabot[bot]
10849ae027
Bump @types/node from 16.18.9 to 16.18.10 (#6791)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.18.9 to 16.18.10.
- [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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-20 07:53:17 -05:00
Alex Andreev
56197d8e2e
Fix resize anchor z-index (#6784)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-19 11:44:04 -05:00
Alex Andreev
e0bccfabd4
Fix app crash opening Install Chart dock tab (#6782)
* Change type of RequestHelmChartValues to be AsyncResult

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

* Fixing tests

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

* Linter fix

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

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-19 17:00:13 +03:00
dependabot[bot]
8b752981a0
Bump playwright from 1.28.1 to 1.29.0 (#6779)
Bumps [playwright](https://github.com/Microsoft/playwright) from 1.28.1 to 1.29.0.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.28.1...v1.29.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-19 08:16:42 -05:00
dependabot[bot]
511d6affb0
Bump esbuild from 0.16.7 to 0.16.9 (#6778)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.16.7 to 0.16.9.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.16.7...v0.16.9)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-19 08:15:58 -05:00
dependabot[bot]
f302fa94d5
Bump sass from 1.56.1 to 1.57.0 (#6777)
Bumps [sass](https://github.com/sass/dart-sass) from 1.56.1 to 1.57.0.
- [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.56.1...1.57.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-19 08:15:47 -05:00
dependabot[bot]
5089635065
Bump eslint from 8.29.0 to 8.30.0 (#6776)
Bumps [eslint](https://github.com/eslint/eslint) from 8.29.0 to 8.30.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.29.0...v8.30.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-19 08:15:36 -05:00
Alex Andreev
bf6550918c
Fix helm chart readme load app crash (#6781)
* Change request readme types to be AsyncResult

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

* Linter fix

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

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-12-19 08:14:49 -05:00
Sebastian Malton
5c6402b60a
Make apiBase not an InjectionToken and make openNodeShellSession not special (#6774)
* Replace apiBaseInjectionToken with tokens for configuration instead

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

* Use new ordering to make openNodeShellSession non-special

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-16 16:13:57 -05:00
dependabot[bot]
de789ff955
Bump @kubernetes/client-node from 0.17.1 to 0.18.0 (#6769)
* Bump @kubernetes/client-node from 0.17.1 to 0.18.0

Bumps [@kubernetes/client-node](https://github.com/kubernetes-client/javascript) from 0.17.1 to 0.18.0.
- [Release notes](https://github.com/kubernetes-client/javascript/releases)
- [Changelog](https://github.com/kubernetes-client/javascript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes-client/javascript/compare/0.17.1...0.18.0)

---
updated-dependencies:
- dependency-name: "@kubernetes/client-node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix typing

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

* Fix technical test

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

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2022-12-16 09:23:48 -05:00
Sebastian Malton
9c576c7f80
Fix release workflow file (#6772)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-16 08:53:37 -05:00
Sebastian Malton
2d38ec55fb
Fix queries for operator provider metrics (#6679)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-16 08:48:03 -05:00
dependabot[bot]
774641464e
Bump rfc6902 from 5.0.0 to 5.0.1 (#6766)
Bumps [rfc6902](https://github.com/chbrown/rfc6902) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chbrown/rfc6902/releases)
- [Commits](https://github.com/chbrown/rfc6902/compare/v5.0.0...v5.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-16 08:26:03 -05:00
dependabot[bot]
ef613f122f
Bump got from 11.8.5 to 11.8.6 (#6768)
Bumps [got](https://github.com/sindresorhus/got) from 11.8.5 to 11.8.6.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](https://github.com/sindresorhus/got/compare/v11.8.5...v11.8.6)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-16 08:22:47 -05:00