Sebastian Malton and Jari Kolehmainen
1c422f6ed2
Fix kube sync items not visible on reopening ( #2815 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-20 16:40:47 +03:00
Jari Kolehmainen
c8421e4740
handle missing data on disabled hotbar items ( #2829 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-20 16:05:12 +03:00
27d230d12b
Enable deep navigation/routing to catalog ( #2818 )
...
* Enable route-based navigation to catalog items
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
Co-authored-by: Sebastian Malton <sebastian@malton.name >
* Enable custom protocol handle to process routing in catalog
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
Co-authored-by: Sebastian Malton <sebastian@malton.name >
* Fix type imports
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
Co-authored-by: Alex Culliere <alozhkin@mirantis.com >
2021-05-20 15:57:56 +03:00
Jari Kolehmainen
1664b393ee
Refactor CatalogEntityRegistry from common to main ( #2824 )
...
* refactor CatalogEntityRegistry from common to main
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* test fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-20 15:02:55 +03:00
Sebastian Malton
b61ba7ef71
Filter out unknown catalog entities ( #2816 )
...
* Filter out unknown catelog entities
- Keep raw data
- But filter unknown types until a category is registered
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* fix unit tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* simplify tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Remove getOrDefault, consolodate ExtendedMap
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-05-20 08:50:51 +03:00
Sebastian Malton
5ed4537979
Turn on noUnusedLocals, noImplicitReturns, importsNotUsedAsValues: error, and isolatedModules ( #2777 )
2021-05-19 12:11:54 -04:00
Jari Kolehmainen
f168f137e5
Bundle in-tree extensions as npm/tgz ( #2807 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-19 09:40:09 +03:00
Jari Kolehmainen
683e5926e0
Show lens-metrics on cluster settings ( #2714 )
...
* show lens-metrics on cluster settings
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* remove ClusterFeature
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* remove ClusterFeature
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* tweak resource applier/stack
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* update metrics stack components
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix drawer menu styles
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* clarify ui
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* built-in -> bundled
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* splitterError -> splitError
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* support multi-doc yamls
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* dedicated action button
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix headers
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* async file operations
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix bugs
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-18 16:12:45 +03:00
chh
d9c6e5c52f
Catalog entity WebLink.kind 'KubernetesCluster' > 'WebLink' ( #2799 )
...
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
2021-05-18 14:13:07 +03:00
Jari Kolehmainen
b6b1b467e0
Add connect/disconnect methods to KubernetesCluster kind ( #2758 )
...
* add connect/disconnect methods to kubernetes cluster
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* return void
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-18 13:42:33 +03:00
Lauri Nevala
ef4bae341f
Re-implement deployment revisions ( #2795 )
...
* Re-implement deployment revisions
* Fix css
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2021-05-18 13:25:10 +03:00
Jari Kolehmainen
752f49821a
Show active item in hotbar & allow to pin/unpin ( #2790 )
...
* show active item in hotbar & allow to pin it
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix styles
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-18 13:13:33 +03:00
Lauri Nevala
0537792c56
Update node shell to use Alpine 3.13 ( #2792 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2021-05-18 12:26:29 +03:00
Sebastian Malton
6be465858b
Add IPC capabilities for Extensions ( #2775 )
...
* Add IPC capabilities for Extensions
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* revert onA|D change:
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Switch to pushing the disposer in the methods
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* improve documentation, switch to a singleton instead of extension methods
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* fix build
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* make exported class abstract, improve guide
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* fix docs
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Change guide demo to initialization in constructor
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-05-18 12:24:43 +03:00
Lauri Nevala
e188cf45e6
Delete node shell container on exit ( #2793 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2021-05-18 12:23:17 +03:00
Jari Kolehmainen
f8b939bf59
Check license header using eslint ( #2780 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-17 09:43:53 -04:00
Jim Ehrismann
c594844b9b
include the hotbar index in the label displayed for a hotbar ( #2770 )
...
* include the hotbar index in the label displayed for a hotbar
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* address review comments for hotbarDisplayLabel()
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* tweaks to hotbarDisplayLabel()
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
2021-05-17 07:40:32 +03:00
Sebastian Malton
623973add0
Add license header to more files ( #2776 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-05-17 07:19:45 +03:00
Lauri Nevala
761e3a8f52
Add kubectl 1.21 to version map ( #2772 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2021-05-14 14:39:19 -04:00
Alex Andreev
a930d5f14f
Hotbar disabled items ( #2710 )
...
* Saving more entity data to HotbarItem
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding generic MaterialTooltip component
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Move HotbarCell to separate component
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Abstract out HotbarEntityIcon from HotbarIcon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Styling disabled hotbar items
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Migration for adding extra data to hotbar items
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Testing migration
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Some cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Bump migration version
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Bump app version in package.json
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-05-13 10:24:58 +03:00
Jari Kolehmainen
2d0609ed24
Check source files for license header ( #2763 )
...
* check source files for license header
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* tweak
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* add license header to all relevant source files
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-12 18:33:26 +03:00
Alex Andreev
60cdd27d19
Exporting chart components to extensions ( #2759 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-05-12 11:22:59 -04:00
Sebastian Malton
f4ff28e51c
Switch main's route handlers to be static functions ( #2712 )
2021-05-12 08:08:42 -04:00
Sebastian Malton and Jim Ehrismann
0771fd5be5
Cherry-Pick from v4.2.4 ( #2701 )
...
Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com >
2021-05-12 08:04:01 -04:00
Sebastian Malton
47e5cb1732
Only show the UserManagement tab in the sidebar if the sub menus are allowed for that cluster ( #2258 )
...
- Optimize Cluster.isAllowedResource
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-05-12 08:03:23 -04:00
Jim Ehrismann
c0dddc0f40
relax kube api data type validation (to allow metrics-server resources) ( #2744 )
...
* relax kube api data type validation (to allow metrics-server resources)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* removed a few now incorrect tests
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* correct PodMetrics kind
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
2021-05-12 06:56:31 +03:00
Alex and Alex Culliere
619b66c5d5
Allow dynamic menu titles in 'WelcomeMenuRegistration' ( #2752 )
...
Signed-off-by: Alex Culliere <alozhkin@mirantis.com >
Co-authored-by: Alex Culliere <alozhkin@mirantis.com >
2021-05-11 18:41:45 +03:00
dependabot[bot] and Sebastian Malton
cd1ed5a22b
Bump url-parse from 1.4.7 to 1.5.1 ( #2739 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2021-05-11 09:49:33 -04:00
Jari Kolehmainen
253b3768f6
Fix auto-update exiting too fast ( #2721 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-07 09:26:26 +03:00
Jari Kolehmainen
a6e916fa90
Create cluster object also for non-local sources ( #2719 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-06 20:45:32 +03:00
Sebastian Malton
7b1b8e6321
Fix ClusterScoped kube APIs not subscribing ( #2706 )
...
* Fix ClusterScoped kube APIs not subscribing
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* remove debug
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-05-06 09:10:52 +03:00
Alex Andreev
768e1d14ca
Fixing hotbar drag-n-drop animation issues ( #2704 )
2021-05-05 17:37:06 -04:00
Jari Kolehmainen
1044c544ad
Fix cluster disconnect not going switching to catalog ( #2703 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-05 15:01:21 +03:00
Jari Kolehmainen and Sebastian Malton
8fff064e0c
Fix kubeconfig-sync issues ( #2692 )
...
- Removed `getFreePort` as its use is always a race condition. Change
all uses of it to retrive the port after listening
- Added `getPortFrom` as a helper function to read a port from a stream
- Remove `Cluster.ownerRef` as it is outdated and no longer needed for 5.0
- Remove `Cluster.enabled`, no longer needed because of above
- Removed `Cluster.init`, moved its contents into `Cluster.constructor`
as nothing in that function is asyncronous. Currently only being run
on `main` as a stop gap until `renderer` gets its own version of
`Cluster`
- Refactored `LensProxy` so as to prevent `pty.node` (a NodeJS
extension) being included in `webpack.extension.ts`'s run
- Removed the passing around of the proxy port as that can now be
accessed from an instance of `LensProxy`
- purge ContextHandler's cache on disconnect
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2021-05-04 15:21:15 -04:00
Alex Andreev
1af12fe59e
Hotbar inner drag-n-drop ( #2691 )
...
* Configure ts to use react-jsx rule
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Moving HotbarSelector to separate component
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Initial drag-n-drop implementation
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Revert tsconfig and linter changes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Reverting back active cell effect
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding drag-n-drop behavior
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix drag-n-drop logic
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* White border on dragging over
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding test coverage
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fixing cell hover effect
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Increase PageLayout z-index
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Styling hotbar selector tooltip
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-05-04 07:49:14 +03:00
Sebastian Malton
d1272515b8
Add browse all tab to catalog page ( #2629 )
2021-05-03 08:39:04 -04:00
Jari Kolehmainen
d08aeaa2e4
Fix dashboard showing in the background when connect error happens ( #2672 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-05-03 07:15:02 +03:00
Alex Andreev
311869566b
Removing material Tooltip global styles ( #2682 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-04-30 16:48:42 +03:00
Sebastian Malton
998f7aa934
Add the ability to sync kube config files ( #2567 )
...
* Add the ability to sync kube config files
- Will update when the files changes
- add KUBECONFIG_SYNC label
- fix rebase and change to addObservableSource
- move UI to user settings
- support shallow folder watching
- add some unit tests for the diff-er
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* responding to review comments
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* fix tests and add try/catch
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* always sync c&p folder, remove bad rebase
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* fix preferences
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix settings saving and catalog view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* fix unit tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* fix synced clusters not connectable
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* change to non-complete shallow watching
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* fix sizing
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Catch readStream errors
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* don't clear UserStore on non-existant preference field, fix unlinking not removing items from source
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* change label to file
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-04-30 16:48:20 +03:00
Samundra Shrestha
12d2dc8616
Fix broken link to adding-cluster instruction ( #2646 )
...
Signed-off-by: Samundra Shrestha <samundra.shr@gmail.com >
2021-04-29 08:34:27 -04:00
Sebastian Malton
082885cabf
Fix KubeObjectStore not correctly tracking loading of namespaces ( #2266 )
2021-04-29 08:32:29 -04:00
Sebastian Malton
2c3750c240
Fix display name on accessible namespaces notification ( #2657 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-04-29 08:29:32 -04:00
Sebastian Malton
f61f768fc7
fix getNodeWarningConditions ( #2644 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-04-29 12:25:44 +03:00
Jari Kolehmainen
0a604201d4
Fix hotbar icon kind light theme ( #2668 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-04-29 12:24:48 +03:00
Alex Andreev
7bbe6aeab1
Removing add/delete empty cells feature ( #2667 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-04-29 12:21:47 +03:00
Jari Kolehmainen
c057f3fc20
Show entity source on tooltip + use it for color ( #2669 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-04-29 12:12:33 +03:00
Jari Kolehmainen
78c77a169a
Set product name to window title ( #2665 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-04-28 15:40:25 -04:00
Sebastian Malton
ac963ede6e
Ignore failures due to files in bundled folder ( #2661 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-04-28 15:29:02 -04:00
Black-Hole
fbf1245576
fix(renderer-log): multiple spaces merge into one ( #2655 )
...
Signed-off-by: BlackHole1 <158blackhole@gmail.com >
2021-04-28 21:56:02 +03:00
Jari Kolehmainen
41c9a355ed
Refactor / fix cluster view visibility ( #2654 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-04-28 21:38:57 +03:00