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

1488 Commits

Author SHA1 Message Date
Janne Savolainen
4b76327489
Introduce healthy abstraction between back-end routes and route handlers
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 09:20:53 +02:00
Janne Savolainen
d099256c9a
Make routes wait until all asynchronous stuff are done
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 09:11:11 +02:00
Janne Savolainen
afa9c10969
Make adding routes private for router
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 09:11:11 +02:00
Janne Savolainen
711516cccf
Switch to using injectable to setup route for serving static files
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 09:11:08 +02:00
Janne Savolainen
086db9fce7
Add global override for reading file to make it not required where not interesting
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:56:54 +02:00
Janne Savolainen
3ab356b97f
Switch to using injectable to setup route for getting version
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:56:52 +02:00
Janne Savolainen
c41d10de02
Switch to using injectable to setup route for getting service account
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:55:25 +02:00
Janne Savolainen
ef92a98755
Switch to using injectable to setup route for metrics
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:55:25 +02:00
Janne Savolainen
4bac753f76
Consolidate start port forward route to use injection token for registering route
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:55:24 +02:00
Janne Savolainen
398d980047
Switch to using injectable to setup route for getting current port forward
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:24 +02:00
Janne Savolainen
1853c23e5e
Switch to using injectable to setup route for stopping current port forward
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:24 +02:00
Janne Savolainen
fc582d77a2
Switch to using injectable to setup route for patching resource
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:24 +02:00
Janne Savolainen
ae3b49a9c1
Switch to using injectable to setup route for applying resource
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:24 +02:00
Janne Savolainen
f15dd3b3b1
Remove HelmRoute for not being used anymore
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:24 +02:00
Janne Savolainen
72ec1d09a7
Switch to using injectable to setup route for deleting release
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:24 +02:00
Janne Savolainen
1712eab5b9
Switch to using injectable to setup route for getting release history
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:24 +02:00
Janne Savolainen
b56d25b9a1
Switch to using injectable to setup route for getting release values
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:23 +02:00
Janne Savolainen
06be2951ee
Switch to using injectable to setup route for getting release
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:23 +02:00
Janne Savolainen
4a200dad5a
Switch to using injectable to setup route for listing releases
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:23 +02:00
Janne Savolainen
80d07edc66
Switch to using injectable to setup route for rollbacking release
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:23 +02:00
Janne Savolainen
ea561ff025
Switch to using injectable to setup route for updating release
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:23 +02:00
Janne Savolainen
3d803ff1c2
Switch to using injectable to setup route for installing chart
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:23 +02:00
Janne Savolainen
cca9c4b498
Switch to using injectable to setup route for get chart values
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:23 +02:00
Janne Savolainen
6729f46542
Switch to using injectable to setup route for get chart
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:22 +02:00
Janne Savolainen
9aefdf3dc6
Switch to using injectable to setup route for list charts
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:22 +02:00
Janne Savolainen
fc9e9ee2b7
Make registration of back-end routes happen using injectable
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-11 08:53:21 +02:00
Alex Andreev
772e879b81
Fix "logs from" date (#4987) 2022-03-10 16:13:22 -05:00
Jim Ehrismann
bba3199bb5
Remove listener for online event (#4970) 2022-03-10 11:08:31 -05:00
Jim Ehrismann
98235d17ac
fixed non-virtual list row rendering (#4983) 2022-03-10 09:05:05 -05:00
Sebastian Malton
8b6f8e5dc3
Fix HelmChart validator requiring digest field (#4920)
* Fix HelmChart validator requiring digest field

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

* fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-10 07:06:47 -05:00
Sebastian Malton
a19f094a0d
Consolidate downloading binaries into one script (#4942)
* Consolidate downloading binaries into one script

- Upgrade lens-k8s-proxy to 0.1.5 which allows us to remove the trailing
  slash in KubeAuthProxy

- Consolidate nromalizing arch and os strings

- Remove LensBinary as HelmCli is not just a raw object since it is
  always bundled

- Introduce OnceCell and use it for the binary paths

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

* Fully remove helmCli, move associated variable to vars

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

* Fix helm downloading on windows

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

* Don't download binaries for unsupported windows

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

* Arch specific paths

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

* Fix downloading helm on windows

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

* rename once-cell file to lazy-initialized

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-09 17:51:51 -05:00
Alex Andreev
dd5dfb393d
Add 'Sync with computer' theme option (#4973) 2022-03-09 08:08:24 -05:00
Jari Kolehmainen
a4954b9f8d
Webpack quality of life improvements for dev mode (#4980) 2022-03-08 09:48:16 -05:00
Carlos René Mederos Arias
adf3b8dc60
Fix annotation for cronjob when is manually triggered (#4976)
Signed-off-by: Carlos René Mederos Arias <krlosmederos@gmail.com>
2022-03-08 07:04:25 -05:00
Jim Ehrismann
e59cb04d5a
quick fix for logs not showing in tabs after first tab (#4964)
* quick fix for logs not showing in tabs after first tab

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* proper fix

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2022-03-04 07:02:29 -05:00
Dmitriy Noa
769a9441f8
Fix unselect. Add unit tests (#4961)
* Fix unselect. Add unit tests

Signed-off-by: DmitriyNoa <dmytro.zharkov@gmail.com>

* Cleanup

Signed-off-by: DmitriyNoa <dmytro.zharkov@gmail.com>

* Add additional test for undefined

Signed-off-by: DmitriyNoa <dmytro.zharkov@gmail.com>
2022-03-04 10:09:15 +01:00
Janne Savolainen
125a47a56d
Replace WorkloadsOverviewDetailRegistry with reactive solution (#4817)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-03-04 10:04:38 +02:00
Jari Kolehmainen
8dbc0b82f8
Fix api-manager kubeobject types (#4959)
* loosen api-manager kubeobject types

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* less any

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* less any

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix typings

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix typings

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2022-03-03 19:26:56 +02:00
Janne Savolainen
54b87efd89
Replace KubeObjectStatusRegistry with reactive solution (#4815) 2022-03-03 07:55:57 -05:00
Sebastian Malton
d72ebac5f3
Bump lens-k8s-proxy to v0.1.5 (#4946)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-02 17:21:32 -05:00
Sebastian Malton
0b32775d40
Enforce some naming conventions (#4813) 2022-03-01 13:06:53 -05:00
Sebastian Malton
ff14603be6
Fix formatDuration test to be stable (#4944) 2022-03-01 11:05:32 -05:00
Sebastian Malton
5196ffa55d
Fix Editor's Font Family preference not being editable (#4938) 2022-03-01 10:53:44 -05:00
Jari Kolehmainen
c04a3b8d33
Replace kubectl-proxy with lens-k8s-proxy (#4924) 2022-02-28 09:37:29 -05:00
Sebastian Malton
f5a7d64551
Reduce cluster logging on quit (#4935) 2022-02-28 08:34:45 -05:00
Janne Savolainen
b65f6e00ec
Update injectable library (#4842)
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2022-02-25 11:10:13 -05:00
Roman
476ca252fb
Updated typescript target to ES2019 (#4869) 2022-02-25 10:20:22 -05:00
Roman
ff55719ffa
Upgrade to webpack@5 (#4894) 2022-02-25 10:20:06 -05:00
Alex Andreev
2bed34ccd5
Show helm details fetch errors in Notifications (#4905)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-02-24 07:52:45 +03:00
Jari Kolehmainen
ee15188285
use official helm icon (#4925)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2022-02-23 14:04:46 +02:00