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

3372 Commits

Author SHA1 Message Date
Sebastian Malton
6f8de6ab80 Starting attempt to move kubeconfig sync tests to application builder
- Blocked on catalog sync not being injectable yet

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:13:07 -05:00
Sebastian Malton
d2ff35551c Remove dependency on url-parse due to side effects
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:13:07 -05:00
Sebastian Malton
93c18e0368 Fix technical tests for KubeconfigManager
- And start using ApplicationBuilder for them

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:13:06 -05:00
Sebastian Malton
0458513797 Add auth header token to proxy config
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:13:06 -05:00
Sebastian Malton
fab36c23a0 Fix ordering issues on Runnable token
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:13:06 -05:00
Sebastian Malton
73469c4833 Improve error handling and reporting in setup-lens-proxy
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:13:06 -05:00
Sebastian Malton
de1e3919eb Fix missing headers
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:13:06 -05:00
Sebastian Malton
4918fe171a Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:13:06 -05:00
Sebastian Malton
1213e844d8 Improve our wrapper to JSON.parse
- Only use it in some places

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:13:06 -05:00
Sebastian Malton
cb9d978e5a Add new Result type to complement AsyncResult
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:13:06 -05:00
Sebastian Malton
63ad078d63 Add authentication header requirments
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:12:39 -05:00
Sebastian Malton
4867286179 Add auth header value state + sync
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:12:39 -05:00
Sebastian Malton
d83d223742 Better fake time impl
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 10:01:22 -05:00
Sebastian Malton
bd6f204828 Simplify handleLensRequest by factoring out sub functions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-20 09:21:33 -05:00
Sebastian Malton
2d8ecbff43 Remove handle-request-for as unnecessary injectable
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 16:24:40 -05:00
Sebastian Malton
4d16079ab6 Remove return from routeRequest as unused.
- Add log line for when route is not found

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 15:55:18 -05:00
Sebastian Malton
fdae7870da Fix faking lensFetch
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 09:37:26 -05:00
Sebastian Malton
aea545526d Make the upgrade routes actually use a router
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 09:37:26 -05:00
Sebastian Malton
01bc135c59 Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 09:37:26 -05:00
Sebastian Malton
9fadceb5a3 Add override for renderer DI
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 09:37:26 -05:00
Sebastian Malton
79c06a0fd4 Override lensFetchInjectable in ApplicationBuilder
- So that we can request from the backend routes

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 09:37:25 -05:00
Sebastian Malton
bd1c104f68 Remove LensProxy class as unnecessary
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 09:37:25 -05:00
Sebastian Malton
3f467b8fd3 Simplify router for LensProxy
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 09:37:25 -05:00
Sebastian Malton
305c4a5573
Remove last usages of request in our code (#6911)
* Improve the injectability of cluster metadata detection

- Remove unnecessary and complex base class

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

* Remove dead code

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

* Remove dead code

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

* Remove last usages of request in our code

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

* Remove more deps

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

* Fix tests

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

* Fix lensFetch

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 09:35:33 -05:00
Sebastian Malton
8e65a0acd6
Improve the injectability of cluster metadata detection (#6910)
* Improve the injectability of cluster metadata detection

- Remove unnecessary and complex base class

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

* Remove dead code

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

* Remove dead code

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 16:34:31 +02:00
Sebastian Malton
d059956c1e
Upgrade to codeql@v2 (#6976)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 08:24:42 -05:00
Sebastian Malton
8009d96957
Broadcast error messages within Cluster.getConnectionStatus (#6964)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 08:23:50 -05:00
dependabot[bot]
2cc7ad111a
Bump esbuild from 0.17.2 to 0.17.3 (#6977)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.17.2 to 0.17.3.
- [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.17.2...v0.17.3)

---
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>
2023-01-19 08:23:41 -05:00
Sebastian Malton
09e7ec1543
Release 6.4.0-alpha.4 (#6975)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 08:23:30 -05:00
Sebastian Malton
4b3fad57cb
Fix extension API version being specified by library user (#6974)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-19 08:17:50 -05:00
Alex Andreev
943756bad9
Fix KubeObjectDetails light theme table view (#6981)
* Add flat TableHead param

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

* Use flat headers across details panel tables

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

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-19 13:40:25 +03:00
Alex Andreev
b8d1ef708e
Add KubeEventDetails empty placeholder (#6978)
* KubeEventDetails empty placeholder

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

* Updaing snapshots

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

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-19 13:27:33 +03:00
Roman
a5c62da002
Finish using NamespaceSelectBadge in all places (#6972)
Signed-off-by: Roman <ixrock@gmail.com>

Signed-off-by: Roman <ixrock@gmail.com>
2023-01-18 14:36:48 -05:00
Sebastian Malton
d3b1b0e3b6
Fix KubeJsonApi.forCluster as part of extension API (#6973)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-18 12:12:21 -05:00
Roman
5b3f11f80a
Better visibility of updating global namespace from resource listing views (#6962)
* - <NamespaceSelectBadge/> new component refactored out from multiple resource views with excessive dependencies (e.g updating global namespace filter)
- better UX to and visibility for user on click action (sometimes namespace-filter might not be visible in app/UI)
- updated some snapshots with `jest --updateSnapshot src` (somehow affected `helm-charts/releases/*`)
2023-01-18 19:47:14 +04:00
Sebastian Malton
5fc8ec610d
Publish to the correct channels instead of always latest (#6963)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-18 09:00:33 -05:00
dependabot[bot]
ec84eeed8b
Bump esbuild from 0.17.0 to 0.17.2 (#6967)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.17.0 to 0.17.2.
- [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.17.0...v0.17.2)

---
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>
2023-01-18 08:37:41 -05:00
dependabot[bot]
c0de5fcfcb
Bump @swc/core from 1.3.26 to 1.3.27 (#6968)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.3.26 to 1.3.27.
- [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.26...v1.3.27)

---
updated-dependencies:
- dependency-name: "@swc/core"
  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>
2023-01-18 08:37:29 -05:00
Sebastian Malton
7c9520181c
Update lockfile (#6965)
* Update lockfile

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

* Update lockfile

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-17 11:04:29 -05:00
dependabot[bot]
b2ac628d05
Bump @typescript-eslint/* from 5.48.1 to 5.48.2 (#6954)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.48.1 to 5.48.2.
- [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.48.2/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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-17 09:00:06 -05:00
dependabot[bot]
5ca12f41e9
Bump immer from 9.0.17 to 9.0.18 (#6955)
Bumps [immer](https://github.com/immerjs/immer) from 9.0.17 to 9.0.18.
- [Release notes](https://github.com/immerjs/immer/releases)
- [Commits](https://github.com/immerjs/immer/compare/v9.0.17...v9.0.18)

---
updated-dependencies:
- dependency-name: immer
  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>
2023-01-17 08:57:08 -05:00
Sebastian Malton
8ace84f7e7
Delay removing iframe to fix renderer crash (#6952)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-17 08:55:52 -05:00
dependabot[bot]
d3a3d7234a
Bump eslint-plugin-react from 7.32.0 to 7.32.1 (#6956)
Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.32.0 to 7.32.1.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.32.0...v7.32.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  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>
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>
2023-01-17 08:15:07 -05:00
dependabot[bot]
9f9570c3e8
Bump eslint-plugin-import from 2.27.4 to 2.27.5 (#6953)
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.27.4 to 2.27.5.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.27.4...v2.27.5)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  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>
2023-01-17 08:13:23 -05:00
Sebastian Malton
e635d82ea5
Cleanup loading terminal fonts (#6937)
* Cleanup loading terminal fonts

- Make list of possible fonts fully OCP
- Only mark the loading of a font as 'causesSideEffects'
- Make a view model for the terminal font preferences component
- Move the TTF files next to where they are registered to help with finding them

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

* Fix tests

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

* Cleanup formatting and change model to presenter

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-17 08:11:52 -05:00
Jari Kolehmainen
cf27605a21
Introduce ipcMainInjectionToken (#6950)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-01-16 16:20:43 -05:00
Jari Kolehmainen
40918cf582
Move IpcRendererNavigationEvents to common (#6949)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-01-16 16:20:30 -05:00
dependabot[bot]
ea17df9559
Bump esbuild-loader from 2.20.0 to 2.21.0 (#6944)
Bumps [esbuild-loader](https://github.com/privatenumber/esbuild-loader) from 2.20.0 to 2.21.0.
- [Release notes](https://github.com/privatenumber/esbuild-loader/releases)
- [Commits](https://github.com/privatenumber/esbuild-loader/compare/v2.20.0...v2.21.0)

---
updated-dependencies:
- dependency-name: esbuild-loader
  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>
2023-01-16 14:23:40 -05:00
dependabot[bot]
a95fc7bfbf
Bump eslint from 8.31.0 to 8.32.0 (#6943)
Bumps [eslint](https://github.com/eslint/eslint) from 8.31.0 to 8.32.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.31.0...v8.32.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>
2023-01-16 11:20:24 -05:00
Roman
05d3b2efa3
Improvements and more stability in support HMR/live-reload
Signed-off-by: Roman <ixrock@gmail.com>

Signed-off-by: Roman <ixrock@gmail.com>
2023-01-16 18:12:10 +02:00