Panu Horsmalahti
9d9f9c0072
Expose forRemoteCluster in the extension API. ( #3786 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2021-09-13 16:59:41 +03:00
Panu Horsmalahti
936927af98
Add CatalogCategory filter to the extension API ( #3718 )
...
* Add CatalogCategory filter to the extension API.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Fix test.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2021-09-13 15:46:28 +03:00
Jari Kolehmainen
3262b13926
Allow KubeApi connect directly to remote k8s ( #3766 )
...
* allow KubeApi to connect directly to remote k8s
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* backward compat
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* backward compat
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-09-13 10:14:05 +03:00
Jari Kolehmainen
41fcd73c69
expose logger to extensions ( #3708 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-09-01 13:15:38 +03:00
Sebastian Malton and Panu Horsmalahti
6fdb2f0b58
Support filtering catalog entities ( #3647 )
...
* Support filtering catalog entities
- This allows extensions and OpenLens to restrict which of the entities
the sources have provied are "visible" to the rest of Lens
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* switch to filtering only for catalog view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix test
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Add test to iter reduce
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
Co-authored-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2021-08-31 16:00:56 +03:00
59933507e4
Upgrade to electron 12 and Node 14 ( #3572 )
...
Upgrade to electron 12 and Node 14
- Compute cluster ID for tests
- Switch to temporary appData path while testing
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Co-authored-by: Sebastian Malton <smalton@mirantis.com >
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-08-26 12:13:31 -04:00
chh
54ac311933
Add WelcomeBanner.width extension API ( #3663 )
...
* Allow to add WelcomeBannerRegistration.width and use that to caculate to width of Banner container
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
* Export at const
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
2021-08-24 10:05:08 +03:00
chh
d3ce43e73d
Add 'welcome banner' extension API ( #3656 )
...
* Add react-material-ui-carousel
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
* Add welcomeBanners extension api
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
2021-08-23 14:31:24 +03:00
pashevskii and Alex Andreev
e4c393244a
Replace Ace Editor with monaco ( #2949 )
...
Signed-off-by: Pavel Ashevskii <pashevskii@mirantis.com >
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-08-12 13:00:52 +03:00
Jari Kolehmainen
21c7af1887
Expose KubeObjectStore to main extension ( #3597 )
...
* allow to pass KubeObjectStore.api via constructor
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* expose KubeObjectStore to main extension
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-08-12 11:39:27 +03:00
Jari Kolehmainen
58a446bd45
Refactor k8s api to common ( #3553 )
...
* refactor kube api to common
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor more utils to common
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor more utils to common
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* switch to use node-fetch on both sides
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* improve logger
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix lint errors
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix/improve tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix node-fetch require error on prod build
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* preload fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* read serverAddress from apiBase
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-08-10 13:26:14 +03:00
Sebastian Malton
2b3351bf9b
Remove circular dependency with isAllowedResource function ( #3545 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-08-04 16:01:47 -04:00
Sebastian Malton
fb74859f66
Split KubeObject related components into seperate folders ( #3533 )
2021-08-03 17:39:29 -04:00
Sebastian Malton
a6e91fc34a
Move cluster related types and function into seperate files ( #3530 )
2021-08-03 10:36:14 -04:00
Sebastian Malton
1b88e63343
Set default type params for KubeObjectDetail related APIs ( #3528 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-29 10:55:41 -04:00
Sebastian Malton
1437f8a945
Fix auto cleanup of Extension's IPC classes ( #3505 )
2021-07-23 15:14:11 -04:00
Sebastian Malton
cdb7c95b8f
Fix typings for KubeObjectDetailsRegistration ( #3460 )
2021-07-21 10:22:32 -04:00
Sebastian Malton
fe33296ba5
Bundled extensions are always compatible in dev mode ( #3459 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-21 07:19:46 +03:00
Jari Kolehmainen
ba0581d982
Skip previously bundled extensions ( #3420 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-07-19 09:35:51 -04:00
Josh Soref and Josh Soref
e87b4836be
Fix spelling ( #3181 )
...
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com >
2021-07-16 08:53:01 -04:00
Sebastian Malton
0a8cf96415
Add kube-version and distro on detail panel ( #3335 )
2021-07-14 08:30:57 -04:00
Sebastian Malton
c335b0f054
Only create TerminalStore after ThemeStore ( #3359 )
...
- Use Proxy for backwards compatability
- Fix a bunch of unit tests that needed all the Singleton's created
- Add comments on the order required for the store migrations
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-13 12:36:46 -04:00
Jim Ehrismann
d0d6233869
ignore Lens's prerelease tag when checking extension compatibility ( #3317 )
2021-07-12 12:34:34 -04:00
Jari Kolehmainen
e60c6905da
Fix problem with in-tree extension load ( #3274 )
...
* Revert "don't set prerelease version info when non-prerelease (#3261 )"
This reverts commit 3f01abbddf .
* include fix from #3256
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-07-05 23:17:35 +03:00
Panu Horsmalahti
7e8cc2122c
Fix extension enabled status after installation ( #3199 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2021-06-28 16:48:02 +03:00
Sebastian Malton
dbfdd450a8
Track extension provisions and check bundled for routing ( #3187 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-25 13:28:07 -04:00
Sebastian Malton
51655884c7
Fix hotbar migration of workspaces ( #3178 )
2021-06-25 09:55:25 -04:00
Sebastian Malton
6b464a873b
Mark typed-emitter as a dependency for @k8slens/extensions ( #3138 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-21 14:14:48 -04:00
Alex Andreev
e2e3e371a8
Highlight community slack channel link ( #3127 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-06-21 15:42:14 +03:00
Jari Kolehmainen
a21ede72c8
expose MainLayout to extensions ( #3125 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-06-21 15:26:17 +03:00
Alex Andreev
d9ceb8fa08
General catalog category ( #3106 )
...
* Adding General Entities and General Category
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Usign material icons for general entities
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Setting background for hotbar icon explicitly
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding Catalog initially to first hotbar
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Tuning hotbar store tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Changing type from GeneralEntity to General
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Search for catalog hotbar item in tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Removing Catalog link from bottom bar
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Waiting for hotbar catalog entity
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Opening cluster list by data-testId
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Replacing types on interfaces
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fixing integration tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding general entities throught initializers
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Removing icon refs from CatalogEntitySpec
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-06-21 10:59:54 +03:00
Jari Kolehmainen
48e278c71b
Rename PageLayout to SettingLayout ( #3123 )
...
* rename PageLayout to SettingLayout
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* expose to extensions
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-06-21 10:50:40 +03:00
Sebastian Malton
4ff5a722a7
lens:// routing shouldn't ignore intree extensions ( #3091 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-18 10:19:13 -04:00
Sebastian Malton
c3c944cd30
Send LensMainExtension.nagivate calls to renderer before navigating ( #3082 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-17 12:59:27 +03:00
Jari Kolehmainen
80f66f0569
Fix top-bar extension render errors ( #3049 )
...
* fix top-bar extension render errors
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-06-14 11:50:52 +03:00
Alex Andreev
d14a3e4a6d
Adding Topbar extension registries ( #2997 )
...
* Move topbars to cluster manager
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding topBar extension registries
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* topbar test clean up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Removing unused class
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Expanding CSS Module typings
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fixing welcomeURL path
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Remove unused import
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix TopBarRegistry references
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fixing topbar test
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Init missing registry
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-06-14 07:40:14 +03:00
Sebastian Malton
280af6391e
Switch to more specific IPC helpers ( #2821 )
2021-06-10 10:34:22 -04:00
Sebastian Malton
6d10f011e5
Explicitly initialize registries
...
- Helps moves towards turning on banning CyclicImports
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-10 09:34:13 -04:00
Sebastian Malton
c18df6bcae
Minor cleanup of ExtensionDiscovery ( #2887 )
2021-06-10 09:21:04 -04:00
Sebastian Malton
5ee2ab5b4a
Move all RouteParam's and URL builders to src/common ( #2778 )
...
- Prevents some circular dependencies
- Allowed main to use them as needed
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-10 08:52:09 -04:00
Sebastian Malton
a1a1c240e9
Split UserManagement into seperate Cluster and Namespace Roles and RoleBindings ( #2755 )
2021-06-09 13:40:55 -04:00
Jari Kolehmainen
3847a91758
Initial support for validating extension engines.lens version ( #2884 )
2021-06-09 09:24:58 -04:00
Sebastian Malton
d21f99e609
Await onActivate/onDeactive of extensions ( #2963 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-07 08:08:39 -04:00
Jari Kolehmainen and Sebastian Malton
0fb927f96b
catalog details panel ( #2939 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2021-06-07 10:09:00 +03:00
Lauri Nevala
9852e5cfd8
Implement extensions API for workloads overview details ( #2945 )
...
* Implement extensions API for workloads overview details
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
* Prefix workloadsOverviewDetailItems
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
* More renaming
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
* Add missing registry
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2021-06-04 15:14:45 +03:00
Sebastian Malton
0d0c67f13f
Update docs to be correct with the new api changes ( #2916 )
...
* Update docs to be correct with the new api changes
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix renderer-extension.md
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-06-04 12:44:25 +03:00
Lauri Nevala
e1be10b74d
Expose NamespaceSelectFilter component to Extensions API ( #2934 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2021-06-01 09:05:41 -04:00
Jari Kolehmainen
18e38223d4
Use in-tree extension tgz package only in production builds ( #2915 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-31 15:36:24 +03:00
Lauri Nevala
b322d13d47
Fix BaseRegistry's items observable map ( #2889 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2021-05-28 15:01:18 +03:00
Roman
643b0d861f
Fix: cluster commands disappeared from Command Palette ( #2886 )
...
* Cluster commands disappeared from Command Palette, close #2760
Signed-off-by: Roman <ixrock@gmail.com >
* refactoring: get rid of ClusterStore.active && ClusterStore.activeCluster (managed via catalog's entity)
Signed-off-by: Roman <ixrock@gmail.com >
2021-05-28 14:06:18 +03:00