Sebastian Malton
f8ae1149fb
Make all of Command* injectable, with some others too
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-01-05 11:48:52 -05:00
Sebastian Malton
abe90ad92a
Add CRDs to Command Palette and fix bugs
...
- Deprecate the "scope" on command registrations as it is buggy and
generally unfixable
- Switch to mounting CommandContainer in each new frame so that there is
no need to broadcast anything other than opening palette
- Add CRD entries to the command registry within each cluster
- Add navigate to CommandActionContext to simplify handling of root
frame scoped URLs
- Switch to using DI for some of the deps
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-01-05 11:48:51 -05:00
Sebastian Malton
4f75acf2b4
Ban circular dependencies ( #3547 )
2022-01-05 11:35:44 -05:00
Janne Savolainen
4224937260
Merge remote-tracking branch 'origin/master' into eliminate-gst-from-app-paths
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2022-01-05 15:04:43 +02:00
Janne Savolainen and Mikko Aspiala
9d33fff906
Cascade different refactorings to eliminate global shared state from app paths
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2022-01-05 13:26:49 +02:00
Lauri Nevala
02056a6090
Fix prometheus operator metrics work out of the box ( #4617 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2022-01-04 15:43:45 +02:00
Juho Heikka
1db805b451
Extension tray menu items ( #4619 )
...
* Add extension ability to add tray menu items.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Add tray menu extension documentation
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Add tests to tray menu items. Fix autorun infinite loop.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Fix documentation
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Remove unnecessary slice()
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Define a type for tray menu registration
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Change TrayMenuRegistration not to leak or depend on Electron Menu API
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Update trayMenus Extension API documentation
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Refactor all tests to use runInAction
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2021-12-31 15:50:01 +02:00
Janne Savolainen and Mikko Aspiala
a9189f82e6
Stop using global shared state for ExtensionDiscovery and it's relatives
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-28 11:51:34 +02:00
Janne Savolainen and Mikko Aspiala
c2e5df0c84
Stop exporting dependencies for being redundant
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-27 14:17:39 +02:00
Janne Savolainen and Mikko Aspiala
6f0686e9a4
Adapt to changes in injectable
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-27 14:17:38 +02:00
Strokachuk Oleg
71175a0ae1
Show all helm release statuses. Fix lensapp#4586 ( #4594 )
...
Signed-off-by: zifter <zifter.ai@gmail.com >
2021-12-23 12:20:27 +03:00
Juho Heikka
9284741df5
Show splash window until bundled extensions have been loaded ( #4570 )
...
* Show splash window until bundled extensions have been loaded
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Remove unnecessary variable.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Refactor autoInitExtensions
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Add timeout to waiting for bundled extensions to load
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2021-12-23 11:00:18 +02:00
Jari Kolehmainen
43277d2af6
Less noisy metrics-not-available error logging ( #4602 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-12-22 16:11:06 +02:00
Sebastian Malton
e9d99d8485
Replace all uses of promiseExec with promiseExecFile ( #4514 )
2021-12-17 10:29:09 -05:00
Sebastian Malton
bde0a9ef91
Change isEnabledForCluster to use KubernetesCluster instead of Cluster ( #4584 )
2021-12-17 08:28:47 -05:00
Janne Savolainen
3418c0acfe
Merge pull request #4527 from jansav/make-menu-registry-obsolete
...
Remove MenuRegistry in favour of dependency injection
2021-12-16 15:11:30 +02:00
Janne Savolainen
c0a0127d2d
Merge pull request #4557 from lensapp/remove-weird-whitespace
...
Remove all 'NonBreakingSpace' characters from the repo
2021-12-16 08:38:55 +02:00
Janne Savolainen
2189679a30
Merge remote-tracking branch 'upstream/master' into make-menu-registry-obsolete
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-15 16:14:08 +02:00
Janne Savolainen
9f7515db0e
Revert "Introduce a way to start replacing usages of Singleton base-class with no changes required on use places"
...
This reverts commit 34a47f5f
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-15 15:37:37 +02:00
Janne Savolainen
c92c8f8a11
Replace global state usages of ExtensionLoader with DI
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-15 15:37:36 +02:00
Alex Andreev
637f26ae1e
Custom title controls on Windows ( #4528 )
...
* Add context menu in topbar
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding windows title buttons
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding win sandwitch icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Hide windows controls behind the flags
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix topbar layout
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Using topbar as draggable area
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix sandwich icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Mark no-draggable areas
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Remove ipcMainOn window calls
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Explicitly hide main window menu
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix tests more
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Restore linux native view
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Not removing menu in linux
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Showing custom window buttons in Linux
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Remove frame on linux and windows
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Move open context menu event handler to initializers
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Set x, y context menu position explicitly
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-12-14 19:01:57 +02:00
Sebastian Malton
d775d53078
Fix not being able to clear set cluster icon ( #4555 )
2021-12-14 11:38:31 -05:00
Sebastian Malton
56e72b3a74
Fix ERR_UNSAFE_PORT from LensProxy ( #4558 )
...
* Fix ERR_UNSAFE_PORT from LensProxy
- Use the current list of ports from chromium as it is much easier to
just reject using one of those instead of trying to handle the
ERR_UNSAFE_PORT laod error from a BrowserWindow.on("did-fail-load")
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Move all port handling into LensProxy
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* don't use so many exceptions
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-12-14 12:38:35 +02:00
Sebastian Malton
c0e0408c9b
Remove all 'NonBreakingSpace' characters from the repo
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-12-10 13:06:33 -05:00
Sebastian Malton
b665a2efe7
Fix freeze after closing terminal on windows ( #4536 )
2021-12-09 15:52:27 -05:00
Alex Andreev
3dd6b432c9
Export KubeJsonApi to extensions ( #4496 )
...
* Export KubeJsonApi to extensions
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Make forCluster() to consume clusterId as arg
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix lint
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-12-09 15:11:34 +03:00
Janne Savolainen
34a47f5f44
Introduce a way to start replacing usages of Singleton base-class with no changes required on use places
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-09 08:09:49 +02:00
Janne Savolainen
41837e86bb
Remove forgotten console.log used for debug
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-08 14:17:15 +02:00
Janne Savolainen
717b62d2e6
Remove obsolete code
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-08 13:10:50 +02:00
Janne Savolainen and Mikko Aspiala
67c24cac9a
Switch to getting menu items by observing change in extensions instead local state
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
2021-12-08 13:10:50 +02:00
dependabot[bot] and Sebastian Malton
8055ba261b
Bump @types/url-parse from 1.4.4 to 1.4.5 ( #4494 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2021-12-03 08:59:18 -05:00
Jim Ehrismann
f78d9c5fc2
add debug for locating startup issues ( #4481 )
2021-12-02 09:34:06 -05:00
Sebastian Malton
80eeffc229
Log cluster model if adding a cluster fails when syncing from catalog ( #4463 )
2021-12-01 08:08:48 -05:00
Jan Jansen
120134a084
Prefer usage of preference over autoselection ( #4436 )
2021-11-30 13:51:41 -05:00
Sebastian Malton
f0274d08a4
Add Check-For-Updates in menu and some notifications ( #4437 )
2021-11-30 10:30:42 -05:00
Sebastian Malton
2ab9aeb83c
Correctly handle promises and rejections around cluster connection ( #4216 )
2021-11-30 09:05:34 -05:00
Jim Ehrismann
0673c98f4e
Add a query param for filtering port forwards by clusterId ( #4441 )
...
* Add a query param for filtering port forwards by clusterId
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* pass clusterId query as param
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* pass queries as params for other apiBase calls, for consistency
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
2021-11-29 12:21:45 -05:00
Marc Bachmann
b3723de3ec
Add more file system metrics to the pod and container graphs ( #3961 )
2021-11-26 10:03:12 -05:00
Jari Kolehmainen
820b2d1b7a
Revert "Broadcast cluster's disconnected state before stopping KubeAuthProxy ( #4273 )" ( #4412 )
...
This reverts commit 8081d35f9c .
2021-11-24 16:18:30 +03:00
Sebastian Malton
5d172b89db
Cleanup Prometheus detection ( #4316 )
2021-11-23 14:34:45 -05:00
Sebastian Malton
8081d35f9c
Broadcast cluster's disconnected state before stopping KubeAuthProxy ( #4273 )
2021-11-23 14:34:37 -05:00
Sebastian Malton
8c9e3b2fdc
Fix cwd not being respected for local shells on windows ( #4395 )
2021-11-23 14:34:18 -05:00
Sebastian Malton
7c5a0a9a6d
Improve local shell CWD setting ( #4396 )
2021-11-23 08:35:16 -05:00
Sebastian Malton
885af07d0b
Improve bootstrap logging for help with iframe debugging ( #4020 )
2021-11-18 16:54:43 -05:00
Sebastian Malton and Jari Kolehmainen
0f2801552f
Fix handling of PTYs when renderer is reloaded ( #4346 )
...
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-11-17 13:48:46 -05:00
Sebastian Malton
b550ea9178
Reduce logging on failure to get cluster metrics ( #4284 )
2021-11-12 08:51:37 -05:00
Sebastian Malton
a71a6dcaff
Always override PATH when syncing from shell ( #4132 )
2021-11-12 08:50:57 -05:00
Sebastian Malton
3522485c6f
Improve cluster connection visibility ( #4266 )
2021-11-12 08:49:21 -05:00
Sebastian Malton
de4c7e4cff
Fix race condition in refreshViews ( #4094 )
2021-11-10 12:07:55 -05:00
Jari Kolehmainen
8846b5c96f
handle aborted responses in lens proxy ( #4308 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-11-10 13:47:36 +02:00